chore: update test tips [ci-skip]

This commit is contained in:
Evan You
2018-01-15 00:44:23 -05:00
parent 04ceebf768
commit 4f75d1d817

View File

@@ -27,13 +27,13 @@ yarn serve
### Testing Tips
The full test suite is rather slow, because it has a number of e2e tests that performs full webpack builds of actual projects. To narrow down the tests needed to run during development, you can use the `test-package` script to run tests for specific packages:
The full test suite is rather slow, because it has a number of e2e tests that performs full webpack builds of actual projects. To narrow down the tests needed to run during development, you can pass a list of packages to the `test` script:
``` sh
yarn test cli cli-services
```
If the package is a plugin, you can commit the `cli-plugin-` prefix:
If the package is a plugin, you can ommit the `cli-plugin-` prefix:
``` sh
yarn test typescript
@@ -45,7 +45,7 @@ To further narrow down tests, you can also specify your own regex:
yarn test -g <filenameRegex>
```
You can also pass `--watch` to any of the test scripts to run tests in watch mode.
You can also pass `--watch` to run tests in watch mode.
Note that `jest -o` (running tests related to modified files) isn't always accurate because some tests spawn child processes.