Commit a60140f8 authored by Benoit Averty's avatar Benoit Averty Committed by Dan Abramov
Browse files

Disable jest watch mode when --coverage flag is present (#1229)

parent 7f9fb294
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment