We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6074a commit 41e4dcaCopy full SHA for 41e4dca
packages/react-scripts/scripts/test.js
@@ -20,9 +20,11 @@ require('dotenv').config({silent: true});
20
21
const jest = require('jest');
22
const argv = process.argv.slice(2);
23
+// If any of these environment variables exist, don't add --watch to Jest args
24
+const ENV_WITHOUT_WATCH = ['CI', 'COVERAGE', 'NO_TEST_WATCH'];
25
26
// Watch unless on CI
-if (!process.env.CI) {
27
+if (!ENV_WITHOUT_WATCH.some( eww => eww in process.env)) {
28
argv.push('--watch');
29
}
30
0 commit comments