Skip to content

Commit ac20cb2

Browse files
committed
Merge pull request facebook#5705 from facebook/gaearon-patch-1
Mention how to run specific tests in Jest
2 parents 9c57c30 + cd0c62e commit ac20cb2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ This command is just a facade to [Jest](https://facebook.github.io/jest/). You m
2222

2323
For example, `jest --watch` lets you automatically run the test suite on every file change.
2424

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`.
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.
28+
29+
Just make sure to run the whole test suite before submitting a pull request!
30+
2531
### Pull Requests
2632

2733
The core team will be monitoring for pull requests. When we get one, we'll run some Facebook-specific integration tests on it first. From here, we'll need to get another person to sign off on the changes and then merge the pull request. For API changes we may need to fix internal uses, which could cause some delay. We'll do our best to provide updates and feedback throughout the process.

0 commit comments

Comments
 (0)