From 18b7c2e0ae43701d57c0451d4088afc07ab6214e Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Wed, 6 Mar 2019 18:40:32 +0530 Subject: [PATCH] docs(contributing): commands to install jest globally Add commands to install jest globally for running individual tests ISSUES CLOSED: #775 --- CONTRIBUTING.md => .github/CONTRIBUTING.md | 4 ++++ 1 file changed, 4 insertions(+) rename CONTRIBUTING.md => .github/CONTRIBUTING.md (98%) diff --git a/CONTRIBUTING.md b/.github/CONTRIBUTING.md similarity index 98% rename from CONTRIBUTING.md rename to .github/CONTRIBUTING.md index 6cea68c5c44..57782a4b7b9 100644 --- a/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -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: @@ -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: