Fix the incorrect Jest watch command in Contributing
Dan Abramov committed
Dec 21, 2015 at 21:07 UTC
d872c2573905bf6bf17dc4529b0ecdad1aa52f30
1 file changed
+2
-2
CONTRIBUTING.md
+2
-2
@@ -22,9 +22,9 @@ This command is just a facade to [Jest](https://facebook.github.io/jest/). You m
22
23
For example, `jest --watch` lets you automatically run the test suite on every file change.
24
25
-You can also run a subset of tests by passing a prefix to `jest`. For example, `jest ReactDOMSVG` will only run tests in the files that start with `ReactDOMSVG`, such as `ReactDOMSVG-test.js`.
25
+You can also run a subset of tests by passing a prefix to `jest`. For instance, `jest ReactDOMSVG` will only run tests in the files that start with `ReactDOMSVG`, such as `ReactDOMSVG-test.js`.
26
27
-When you know which tests you want to run, you can achieve a fast feedback loop by using these two features together. For example, `jest --watch ReactDOMSVG` will re-run only the matching tests on every change.
27
+When you know which tests you want to run, you can achieve a fast feedback loop by using these two features together. For example, `jest ReactDOMSVG --watch` will re-run only the matching tests on every change.
28
29
Just make sure to run the whole test suite before submitting a pull request!
30