Add explicit check for --watchAll=false (#7433)

Resolves #7180.
This commit is contained in:
Brody McKee
2019-07-26 21:26:57 +03:00
committed by Ian Sutherland
parent 67a2088a7b
commit cbad256a4a

View File

@@ -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();