From a7981669fffe33deaf4fbe295f660edc8ccad4cd Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Thu, 5 May 2022 01:01:51 +0200 Subject: [PATCH] docs: update example for running individual rule tests (#15833) --- docs/src/developer-guide/unit-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/developer-guide/unit-tests.md b/docs/src/developer-guide/unit-tests.md index e2c2d1155d1..cc9a28e3b3b 100644 --- a/docs/src/developer-guide/unit-tests.md +++ b/docs/src/developer-guide/unit-tests.md @@ -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: