From 126cf5594c027c56f509b6bbfadf83c249f12240 Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Wed, 6 Mar 2019 20:12:48 +0530 Subject: [PATCH] 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 --- .github/CONTRIBUTING.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 57782a4b7b9..3a816a517a3 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -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` @@ -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`