8000 docs: update example for running individual rule tests (#15833) · eslint/eslint@a798166 · GitHub
[go: up one dir, main page]

Skip to content

Commit a798166

Browse files
authored
docs: update example for running individual rule tests (#15833)
1 parent b8995a4 commit a798166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/developer-guide/unit-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This automatically starts Mocha and runs all tests in the `tests` directory. You
2222

2323
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:
2424

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

2727
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:
2828

0 commit comments

Comments
 (0)
0