We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5708c6 commit 19e0bb1Copy full SHA for 19e0bb1
packages/react-scripts/scripts/test.js
@@ -33,8 +33,12 @@ if (process.env.SKIP_PREFLIGHT_CHECK !== 'true') {
33
const jest = require('jest');
34
const argv = process.argv.slice(2);
35
36
-// Watch unless on CI or in coverage mode
37
-if (!process.env.CI && argv.indexOf('--coverage') < 0) {
+// Watch unless on CI, in coverage mode, or explicitly running all tests
+if (
38
+ !process.env.CI &&
39
+ argv.indexOf('--coverage') === -1 &&
40
+ argv.indexOf('--watchAll') === -1
41
+) {
42
argv.push('--watch');
43
}
44
0 commit comments