Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
a60140f8
Commit
a60140f8
authored
8 years ago
by
Benoit Averty
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Disable jest watch mode when --coverage flag is present (#1229)
parent
7f9fb294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/scripts/test.js
+2
-2
packages/react-scripts/scripts/test.js
with
2 additions
and
2 deletions
+2
-2
packages/react-scripts/scripts/test.js
+
2
-
2
View file @
a60140f8
...
@@ -21,8 +21,8 @@ require('dotenv').config({silent: true});
...
@@ -21,8 +21,8 @@ require('dotenv').config({silent: true});
const
jest
=
require
(
'
jest
'
);
const
jest
=
require
(
'
jest
'
);
const
argv
=
process
.
argv
.
slice
(
2
);
const
argv
=
process
.
argv
.
slice
(
2
);
// Watch unless on CI
// Watch unless on CI
or in coverage mode
if
(
!
process
.
env
.
CI
)
{
if
(
!
process
.
env
.
CI
&&
argv
.
indexOf
(
'
--coverage
'
)
<
0
)
{
argv
.
push
(
'
--watch
'
);
argv
.
push
(
'
--watch
'
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment