1 | # create-js-app-scripts
|
2 |
|
3 | Configuration and scripts used by [Create JS App](https://github.com/michalkvasnicak/create-js-app)
|
4 |
|
5 | ## Commands
|
6 |
|
7 | ### `npm build` - starts production build
|
8 |
|
9 | ### `npm start` - starts development environment
|
10 |
|
11 | ### `npm test` - starts jest tests configured for jsdom environment
|
12 |
|
13 | Starts jest tests configured for jsdom environment. In this case, test files has to be placed under `__tests__` directory or filenames has to be suffixed with `spec.(js|jsx)` or `test.(js|jsx)` suffix.
|
14 |
|
15 | ### `npm test -- --node`
|
16 |
|
17 | Starts jest tests configured for node environment. In this case, test files has to be placed under `__tests_node__` directory or filenames has to be suffixed with `spec.node.(js|jsx)` or `test.node.(js|jsx)` suffix.
|