You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docusaurus/docs/getting-started.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ npm start
18
18
19
19
_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_
20
20
21
-
Then open [http://localhost:3000/](http://localhost:3000/) to see your app.
21
+
Then open [http://localhost:3000/](http://localhost:3000/) to see your app.
22
22
23
23
When you’re ready to deploy to production, create a minified bundle with `npm run build`.
Copy file name to clipboardexpand all lines: docusaurus/docs/running-tests.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -29,12 +29,14 @@ We recommend to put the test files (or `__tests__` folders) next to the code the
29
29
30
30
## Command Line Interface
31
31
32
-
When you run `npm test`, Jest will launch in the watch mode. Every time you save a file, it will re-run the tests, just like `npm start` recompiles the code.
32
+
When you run `npm test`, Jest will launch in watch mode<sup>\*</sup>. Every time you save a file, it will re-run the tests, just like `npm start` recompiles the code.
33
33
34
34
The watcher includes an interactive command-line interface with the ability to run all tests, or focus on a search pattern. It is designed this way so that you can keep it open and enjoy fast re-runs. You can learn the commands from the “Watch Usage” note that the watcher prints after every run:
> \*Although we recommend running your tests in watch mode during development, you can disable this behavior by passing in the `--no-watch` flag. In most CI environments, this is handled for you (see [On CI servers](#on-ci-servers)).
39
+
38
40
## Version Control Integration
39
41
40
42
By default, when you run `npm test`, Jest will only run the tests related to files changed since the last commit. This is an optimization designed to make your tests run fast regardless of how many tests you have. However it assumes that you don’t often commit the code that doesn’t pass the tests.
@@ -372,9 +374,9 @@ CI=true npm test
372
374
CI=true npm run build
373
375
```
374
376
375
-
The test command will force Jest to run tests once instead of launching the watcher.
377
+
The test command will force Jest to run in CI-mode, and tests will only run once instead of launching the watcher.
376
378
377
-
> If you find yourself doing this often in development, please [file an issue](https://github.com/facebook/create-react-app/issues/new) to tell us about your use case because we want to make watcher the best experience and are open to changing how it works to accommodate more workflows.
379
+
For non-CI environments, you can simply pass the `--no-watch` flag to disable test-watching.
378
380
379
381
The build command will check for linter warnings and fail if any are found.
0 commit comments