Skip to content

Commit

Permalink
docs(contributing): update instructions to run individual tests
Browse files Browse the repository at this point in the history
Add docs to either install jest or use the locally installed binaries from node_modules

ISSUES CLOSED: #775
  • Loading branch information
anshumanv committed Mar 6, 2019
1 parent 126cf55 commit bc0297a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ npm link webpack-cli
- `BIN_TEST_CASES_GREP=/myCase jest test/BinTestCases.test.js`

* To test a single CLI (other type of) test case:
- `yarn jest path/to/my-test.js`
- `npx jest path/to/my-test.js`
- You can also install jest globally and run tests without npx.
- `npm i -g jest`

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

0 comments on commit bc0297a

Please sign in to comment.