Skip to content

Commit

Permalink
chore: update test tips [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 15, 2018
1 parent 04ceebf commit 4f75d1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.

Expand Down

0 comments on commit 4f75d1d

Please sign in to comment.