Skip to content

Commit

Permalink
ac
Browse files Browse the repository at this point in the history
  • Loading branch information
fa93hws committed Oct 16, 2019
1 parent f7f78a2 commit 7ab55c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/developer-guide/unit-tests.md
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 7ab55c1

Please sign in to comment.