Skip to content

Commit

Permalink
docs(contributing): add yarn before running jest
Browse files Browse the repository at this point in the history
Add yarn before jest to grab the local binary of jest from node_modules to run individual tests

ISSUES CLOSED: #775
  • Loading branch information
anshumanv committed Mar 6, 2019
1 parent 18b7c2e commit 126cf55
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ 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`
- `yarn jest path/to/my-test.js`

* To test linting:
- `npm run lint && npm run tslint`
Expand All @@ -74,9 +72,7 @@ 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`
- `yarn jest path/to/my-test.js`

* To test linting:
- `yarn lint && yarn tslint`
Expand Down

0 comments on commit 126cf55

Please sign in to comment.