Skip to content

Commit 18b7c2e

Browse files
committed
docs(contributing): commands to install jest globally
Add commands to install jest globally for running individual tests ISSUES CLOSED: #775
1 parent 62ab32d commit 18b7c2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CONTRIBUTING.md renamed to .github/CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ 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`
5254
- `jest path/to/my-test.js`
5355

5456
* To test linting:
@@ -72,6 +74,8 @@ yarn link webpack-cli
7274
- `BIN_TEST_CASES_GREP=/myCase jest test/BinTestCases.test.js`
7375

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

7781
* To test linting:

0 commit comments

Comments
 (0)