Skip to content

Commit

Permalink
docs(contributing): commands to install jest globally
Browse files Browse the repository at this point in the history
Add commands to install jest globally for running individual tests

ISSUES CLOSED: #775
  • Loading branch information
anshumanv committed Mar 6, 2019
1 parent 62ab32d commit 18b7c2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md → .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ npm link webpack-cli
- `BIN_TEST_CASES_GREP=/myCase jest test/BinTestCases.test.js`

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

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

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

* To test linting:
Expand Down

0 comments on commit 18b7c2e

Please sign in to comment.