Update testing docs to reflect --grep syntax (#12400)

* Update testing docs to reflect --grep syntax

* Use @zeke's suggestion to s/suites/tests/
This commit is contained in:
Jeremy Apthorp 2018-03-22 10:19:53 -07:00 committed by Shelley Vohr
parent f41cce96a3
commit 95cbd69e48

View file

@ -36,9 +36,9 @@ app (surprise!) that can be found in the `spec` folder. Note that it has
its own `package.json` and that its dependencies are therefore not defined
in the top-level `package.json`.
To run only a selected number of tests, run `npm run test -match=NAME`,
replacing the `NAME` with the file name of the test suite you would like
to run. As an example: If you want to run only IPC suites, you would run
`npm run test -match=ipc`.
To run only specific tests matching a pattern, run `npm run test --
-g=PATTERN`, replacing the `PATTERN` with a regex that matches the tests
you would like to run. As an example: If you want to run only IPC tests, you
would run `npm run test -- -g ipc`.
[standard-addons]: https://standardjs.com/#are-there-text-editor-plugins