Skip to content

Commit 45e125f

Browse files
mrmckebiansu
authored andcommitted
Add explicit check for --watchAll=false (facebook#7433)
Resolves facebook#7180.
1 parent 5cf972a commit 45e125f

File tree

1 file changed

+2
-1
lines changed
  • packages/react-scripts/scripts

1 file changed

+2
-1
lines changed

packages/react-scripts/scripts/test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ function isInMercurialRepository() {
5757
// Watch unless on CI or explicitly running all tests
5858
if (
5959
!process.env.CI &&
60-
argv.indexOf('--watchAll') === -1
60+
argv.indexOf('--watchAll') === -1 &&
61+
argv.indexOf('--watchAll=false') === -1
6162
) {
6263
// https://github.com/facebook/create-react-app/issues/5210
6364
const hasSourceControl = isInGitRepository() || isInMercurialRepository();

0 commit comments

Comments
 (0)