Skip to content

Commit

Permalink
Disable jest watch mode when --coverage flag is present (#1229)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitAverty authored and gaearon committed Dec 11, 2016
1 parent 7f9fb29 commit a60140f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-scripts/scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ require('dotenv').config({silent: true});
const jest = require('jest');
const argv = process.argv.slice(2);

// Watch unless on CI
if (!process.env.CI) {
// Watch unless on CI or in coverage mode
if (!process.env.CI && argv.indexOf('--coverage') < 0) {
argv.push('--watch');
}

Expand Down

0 comments on commit a60140f

Please sign in to comment.