Skip to content

Commit d3a3b87

Browse files
committed
chore: update dev guide
1 parent d4cd76a commit d3a3b87

1 file changed

Lines changed: 27 additions & 4 deletions

File tree

CONTRIBUTING.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,24 @@ In case you are suggesting a new feature, we will match your idea with our curre
3333
* `git clone <your-clone-url> && cd webpack-cli`
3434

3535
### Setup with npm
36-
* Install the dependencies: `npm install`
37-
* Run the tests with: `npm test`
36+
* Install the dependencies:
37+
- `npm install`
38+
39+
* To run the entire test suite:
40+
- `npm run test`
41+
42+
* To test a single CLI (flag) test case:
43+
- `BIN_TEST_CASES_GREP=/myCase jest test/BinTestCases.test.js`
44+
45+
* To test a single CLI (other type of) test case:
46+
- `jest path/to/my-test.js`
47+
48+
* To test linting:
49+
- `npm run lint && npm run tslint`
3850

3951
### Setup with yarn
40-
* If you don't have yarn yet: `npm install -g yarn`
52+
* If you don't have yarn yet:
53+
- `npm install -g yarn`
4154
* Install the dependencies and link them
4255

4356
```bash
@@ -46,7 +59,17 @@ yarn link
4659
yarn link webpack-cli
4760
```
4861

49-
* To run the entire test suite use: `yarn test`
62+
* To run the entire test suite use:
63+
- `yarn test`
64+
65+
* To test a single CLI (flag) test case:
66+
- `BIN_TEST_CASES_GREP=/myCase jest test/BinTestCases.test.js`
67+
68+
* To test a single CLI (other type of) test case:
69+
- `jest path/to/my-test.js`
70+
71+
* To test linting:
72+
- `yarn lint && yarn tslint`
5073

5174
## Editor Config
5275

0 commit comments

Comments
 (0)