Skip to content

Commit 126cf55

Browse files
committedMar 6, 2019
docs(contributing): add yarn before running jest
Add yarn before jest to grab the local binary of jest from node_modules to run individual tests ISSUES CLOSED: #775
1 parent 18b7c2e commit 126cf55

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
 

‎.github/CONTRIBUTING.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ npm link webpack-cli
4949
- `BIN_TEST_CASES_GREP=/myCase jest test/BinTestCases.test.js`
5050

5151
* To test a single CLI (other type of) test case:
52-
- If jest is not installed globally
53-
- `npm i -g jest`
54-
- `jest path/to/my-test.js`
52+
- `yarn jest path/to/my-test.js`
5553

5654
* To test linting:
5755
- `npm run lint && npm run tslint`
@@ -74,9 +72,7 @@ yarn link webpack-cli
7472
- `BIN_TEST_CASES_GREP=/myCase jest test/BinTestCases.test.js`
7573

7674
* To test a single CLI (other type of) test case:
77-
- If jest is not installed globally
78-
- `yarn global add jest`
79-
- `jest path/to/my-test.js`
75+
- `yarn jest path/to/my-test.js`
8076

8177
* To test linting:
8278
- `yarn lint && yarn tslint`

0 commit comments

Comments
 (0)
Please sign in to comment.