Skip to content

Commit

Permalink
docs: update example for running individual rule tests (eslint#15833)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic authored and srijan-deepsource committed May 30, 2022
1 parent d6e2036 commit d2d7d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/developer-guide/unit-tests.md
Expand Up @@ -22,7 +22,7 @@ This automatically starts Mocha and runs all tests in the `tests` directory. You

If you want to quickly run just one test file, you can do so by running Mocha directly and passing in the filename. For example:

npm run test:cli tests/lib/rules/no-wrap-func.js
npm run test:cli tests/lib/rules/no-undef.js

If you want to run just one or a subset of `RuleTester` test cases, add `only: true` to each test case or wrap the test case in `RuleTester.only(...)` to add it automatically:

Expand Down

0 comments on commit d2d7d93

Please sign in to comment.