Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(docs): improve test watch mode docs #395

Merged
merged 1 commit into from
Dec 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down