diff --git a/README.md b/README.md index 7d3180165..44edbb69f 100644 --- a/README.md +++ b/README.md @@ -449,7 +449,7 @@ Examples ### `tsdx test` -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. +This runs Jest v24.x in watch mode. See [https://jestjs.io](https://jestjs.io) for options. 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: diff --git a/src/templates/react.ts b/src/templates/react.ts index 9c047a7cf..ebb892788 100644 --- a/src/templates/react.ts +++ b/src/templates/react.ts @@ -19,7 +19,7 @@ const reactTemplate: Template = { }, scripts: { ...basicTemplate.packageJson.scripts, - test: 'tsdx test --env=jsdom --passWithNoTests', + test: 'tsdx test --passWithNoTests', } as PackageJson['scripts'], }, };