Skip to content

Commit

Permalink
Disable jest watch mode when --coverage flag is present (facebook#1229)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitAverty authored and randycoulman committed May 8, 2017
1 parent ae6664d commit 8a42dae
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 8a42dae

Please sign in to comment.