diff --git a/packages/react-scripts/scripts/test.js b/packages/react-scripts/scripts/test.js index 32c93da5ae3..010bc2904a9 100644 --- a/packages/react-scripts/scripts/test.js +++ b/packages/react-scripts/scripts/test.js @@ -57,7 +57,8 @@ function isInMercurialRepository() { // Watch unless on CI or explicitly running all tests if ( !process.env.CI && - argv.indexOf('--watchAll') === -1 + argv.indexOf('--watchAll') === -1 && + argv.indexOf('--watchAll=false') === -1 ) { // https://github.com/facebook/create-react-app/issues/5210 const hasSourceControl = isInGitRepository() || isInMercurialRepository();