From 7ab55c1b764b3f930717a9b3d1b43d37c8f9b6b8 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 16 Oct 2019 13:55:56 +1100 Subject: [PATCH] ac --- docs/developer-guide/unit-tests.md | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/developer-guide/unit-tests.md b/docs/developer-guide/unit-tests.md index 9b9bd440744a..69aa5bd4d81b 100644 --- a/docs/developer-guide/unit-tests.md +++ b/docs/developer-guide/unit-tests.md @@ -12,10 +12,10 @@ This automatically starts Mocha and runs all tests in the `tests` directory. You If you want to quickly run just one test, you can do so by running Mocha directly and passing in the filename. For example: - npm test:cli tests/lib/rules/no-wrap-func.js + npm mocha tests/lib/rules/no-wrap-func.js Running individual tests is useful when you're working on a specific bug and iterating on the solution. You should be sure to run `npm test` before submitting a pull request. ## More Control on Unit Testing -`npm test:cli` is an alias of the Mocha cli in `./node_modules/.bin/mocha`. [Options](https://mochajs.org/#command-line-usage) are available to be provided to help to better control the test to run. +`npm mocha` is an alias of the Mocha cli in `./node_modules/.bin/mocha`. [Options](https://mochajs.org/#command-line-usage) are available for better control on the test to run. diff --git a/package.json b/package.json index 1d124f70af0a..e5091af3a52f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "main": "./lib/api.js", "scripts": { "test": "node Makefile.js test", - "test:cli": "./node_modules/.bin/mocha", + "mocha": "./node_modules/.bin/mocha", "lint": "node Makefile.js lint", "fix": "node Makefile.js lint -- fix", "fuzz": "node Makefile.js fuzz",