From 4f75d1d8170da3b140fee16f050b1953d29172a6 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 15 Jan 2018 00:44:23 -0500 Subject: [PATCH] chore: update test tips [ci-skip] --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3a679e1a3..dce55de57 100644 --- a/README.md +++ b/README.md @@ -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 ``` -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.