-
-
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
Fix coverage reporter for uncovered files without transformers #9724
Conversation
* | ||
* Previous behavior of emitting no map when we can't map back to original source is preserved. | ||
*/ | ||
sourceMaps: canMapToInput ? 'both' : false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specifically this line that breaks. I can keep everything else and just remove this line (or set it to false
) and everything works again. But I thought a full revert makes more sense than a partial one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Revert seems appropriate given how confusing this area is.
Hopefully can re-attempt this one soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, thanks!
This reverts commit 03a7877.
c1c53aa
to
45cc554
Compare
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
The source map for some reason beaks code coverage for uncovered files, as discovered in prettier. This reverts the commit that broke it, and adds a regression test.
Reverts #9460. /cc @mbpreble
Test plan
Regression test added.