Skip to content

Commit

Permalink
Add explicit check for --watchAll=false (#7433)
Browse files Browse the repository at this point in the history
Resolves #7180.
  • Loading branch information
mrmckeb authored and iansu committed Jul 26, 2019
1 parent 67a2088 commit cbad256
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 cbad256

Please sign in to comment.