You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -13,22 +13,22 @@ pnpm install
13
13
## Running the tests
14
14
15
15
```sh
16
-
pnpm test
16
+
pnpm run test
17
17
```
18
18
19
-
To run the tests with debugging log, you can use `pnpm test:debug`.
19
+
To run the tests with debugging log, you can use `pnpm run test:debug`.
20
20
21
21
This is an [ESLint](http://eslint.org) plugin. Documentation for the APIs that it uses can be found on ESLint's [Working with Plugins](http://eslint.org/docs/developer-guide/working-with-plugins) page.
22
22
23
-
This plugin is used to lint itself. The style is checked when `pnpm lint` is run, and the build will fail if there are any linting errors. You can use `pnpm lint-fix` to fix some linting errors.
23
+
This plugin is used to lint itself. The style is checked when `pnpm run lint` is run, and the build will fail if there are any linting errors. You can use `pnpm run lint-fix` to fix some linting errors.
24
24
25
25
## Other Development Tools
26
26
27
-
-`pnpm test` runs tests.
28
-
-`pnpm cover` runs tests and measures coverage.
29
-
-`pnpm new [new-rule-name]` generate the files needed to implement the new rule.
30
-
-`pnpm update` runs in order to update readme and recommended configuration.
31
-
-`pnpm docs:watch` launch the document site in development mode.
27
+
-`pnpm run test` runs tests.
28
+
-`pnpm run cover` runs tests and measures coverage.
29
+
-`pnpm run new -- [new-rule-name]` generate the files needed to implement the new rule.
30
+
-`pnpm run update` runs in order to update readme and recommended configuration.
31
+
-`pnpm run docs:watch` launch the document site in development mode.
32
32
33
33
## Test the Rule
34
34
@@ -52,7 +52,7 @@ To verify the output of invalid test cases requires `*-errors.json`, and `*-outp
52
52
If you want to test only one rule, run the following command (for `indent` rule):
53
53
54
54
```sh
55
-
pnpm test -g indent
55
+
pnpm run test -- -g indent
56
56
```
57
57
58
58
Take <https://stackoverflow.com/questions/10832031/how-to-run-a-single-test-with-mocha> as reference for details.
0 commit comments