-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Coverage Remapping Issue #5151
Comments
|
I think being able to say "this is the source code I want instrumented" makes sense. Are you saying that the fix to your problem must be in Istanbul? There's no change we can make? |
|
We have #5121 for sourcemaps from transforms, I guess the Jest side can be folded into that? |
My understanding of source maps are very basic. If you are saying the error code frame can be picked up from the source maps then yes, that's what I am asking for! 😄 |
We should. I'll close this as a dupe, but leave a note over there to test this use case whenever we get around to fixing it. If it does not fix it, we can reopen. Thanks for the detailed issue and detective work! |
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?
UnsureFeatureWhat is the current behavior?
Coverage remapping that happens in html
lcov-report
that gets generated is onto the actual file contents. Need to be able to remap it onto tranformed version of the actual file content.This is my scenario
![screenshot from 2017-12-21 20-53-20](https://user-images.githubusercontent.com/15635777/34261997-066ba834-e691-11e7-989b-200178f37bbe.png)
Relevant Preprocessor code
Current output in lcov-report
Report that is achieved by superimposing it on the intermediate (Currently doing this when running SonarQube on the code)
What is the expected behavior?
Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.
22.0.1
The text was updated successfully, but these errors were encountered: