mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-06 06:18:38 -06:00
chore: update test tips [ci-skip]
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user