You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing tests with --coverage and --forceExit flags, the process exits before coverage is reported. Dropping --forceExit reports coverage but the process never exits (at least on windows in one of my projects, but I haven't gotten to the bottom of that yet).
This worked as expected in 19.0.2, but fails in 20.0.1.
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.
What is the expected behavior?
Using --forceExit with --coverage should report coverage before exiting (or at least offer a warning).
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Node 7.10.0
Yarn 0.23.4
Npm 4.2.0
Minimal repo for reproducing the behaviour (on both win and mac) https://github.com/tolu/jest-coverage-bug
Just yarn && yarn test and see that no coverage is reported
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Do you want to request a feature or report a bug?
bug
What is the current behavior?
When executing tests with
--coverage
and--forceExit
flags, the process exits before coverage is reported. Dropping--forceExit
reports coverage but the process never exits (at least on windows in one of my projects, but I haven't gotten to the bottom of that yet).This worked as expected in 19.0.2, but fails in 20.0.1.
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can
yarn install
andyarn test
.What is the expected behavior?
Using
--forceExit
with--coverage
should report coverage before exiting (or at least offer a warning).Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Node 7.10.0
Yarn 0.23.4
Npm 4.2.0
Minimal repo for reproducing the behaviour (on both win and mac)
https://github.com/tolu/jest-coverage-bug
Just
yarn && yarn test
and see that no coverage is reportedThe text was updated successfully, but these errors were encountered: