-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
babel-jest 22.2.0 lowered our coverage significantly #5498
Comments
I am not sure if this is related. I am seeing duplicate file records in the coverage output. The secondary lines reduce the coverage because they are not reported with 0 coverage. The strange part is it only happens in Jenkins jobs. The HTML report also has duplicate lines and low coverage. Downgrading Jest to v21 fixes the issue. I am using the --no-cache option. Here is a partial example:
|
If you're running into this issue without changing your jest version, set |
|
Oh, if adding |
The problem is it only happens when the build process is running on Jenkins build server. |
I think i have the same issue here on Windows 10.
|
@BertDuyck seems to be a different issue, because my issue doesn't produce any errors. |
@StephanBijzitter Is it still an issue with the latest version of Jest? If yes, can you set up a reproduction case so we can debug? @BertDuyck I wonder if your issue is related to #5428? |
@SimenB It only happens in one lib, while i have other libs generated the same way with no duplicates. |
Without a reproduction, this is not actionable. Please test with Jest 24 (which has upgraded babel and istanbul dependencies). If it's still an issue, open up a new issue (with a reproduction) |
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. |
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
Everything works, but our line coverage compared to 22.1.0 is significantly less, without any code or test changes.
What is the expected behavior?
Everything works, and our line coverage remains the same.
Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.
Content of the script used in package.json:
Content of babel configuration in package.json:
Content of the configuration file:
https://gist.github.com/StephanBijzitter/036140f1b4c8174018bd45c65360077f
Node 8.9.1 and Yarn 1.3.2, OS X & Ubuntu (Windows not tested)
With babel-jest 22.1.0:
With babel-jest 22.2.0:
The text was updated successfully, but these errors were encountered: