Skip to content

Commit

Permalink
Add explicit check for --watchAll=false
Browse files Browse the repository at this point in the history
Resolves #7180.
  • Loading branch information
mrmckeb authored Jul 26, 2019
1 parent 67a2088 commit 8b30eee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-scripts/scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8b30eee

Please sign in to comment.