diff --git a/README.md b/README.md index 7fd7a110d..e187ef5f3 100644 --- a/README.md +++ b/README.md @@ -450,11 +450,16 @@ Examples This runs Jest v24.x in watch mode. See [https://jestjs.io](https://jestjs.io) for options. If you are using the React template, jest uses the flag `--env=jsdom` by default. -If you would like to disable watch mode, this is one way to do it in your `package.json`: - -``` -"test": "CI=true tsdx test --color" -"test:coverage": "CI=true tsdx test --color --coverage" +If you would like to disable watch mode, you can set the environment variable `CI=true`. For instance, you could set up your `package.json` `scripts` like: + +```json +{ + "scripts": { + "test": "CI=true tsdx test", + "test:watch": "tsdx test", + "test:coverage": "CI=true tsdx test --coverage" + } +} ``` ### `tsdx lint`