-
-
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
mapCoverage true by default #4509
Comments
I'd rather ask @aaronabramov about that. Setting this to true by default could potentially make Jest slower for regular users. |
I've had issues with mapCoverage fixing code coverage for vue, but it scrambles the code coverage for js files. I've tried modifying script_transformer.js to only apply mapCoverage to .vue files, and that worked great (actually, better for vue files which were included only because of collectCoverageFrom). I'm using @eddyerburgh have you experienced anything similar? Currently I've worked around this by running jest twice with mapCoverage on for vue and off for js files but it would be nicer to be able to run jest once. |
@sparecycles I've encountered this issue recently. I'll look into it |
Any update on this? Not trying to be pushy :) just running into this and dealing with workarounds... thanks! Kevin |
See #5177, |
babel-jest doesn't play nice with mapCoverage
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. |
feature request - set
mapCoverage
to true by defaultWhat is the current behavior?
mapCoverage
is false by defaultWhat is the expected behavior?
mapCoverage
to be true by defaultI maintain a jest-vue preprocessor.
A lot of users have problems with source maps. They don't realize you need to tell Jest to use source maps in the coverage reporter, so they think it's a problem with jest-vue.
Is there a reason it's false by default? I would think Jest would use source maps in coverage reporters by default
I'm happy to make a PR to change this
The text was updated successfully, but these errors were encountered: