Skip to content
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

Typescript Code coverage report doesn't show the source #1014

Closed
davidgarsan opened this issue Nov 25, 2020 · 4 comments
Closed

Typescript Code coverage report doesn't show the source #1014

davidgarsan opened this issue Nov 25, 2020 · 4 comments

Comments

@davidgarsan
Copy link

davidgarsan commented Nov 25, 2020

The percentage of covered code by tests is show, but the sources are missing.
Instead, the file links of the report points to the compiled build dir (coverage/lcov-report/_dist_/App.js.html) with are missing, instead of mapping the original Typescript sources.

@LarsDenBakker
Copy link
Member

Source maps should work with the test coverage, do you have an example of the config and CLI args you're using?

@LarsDenBakker
Copy link
Member

Judging from the _dist_ in the path, perhaps you're using snowpack? There is a tracking issue to support source maps in snowpack: FredKSchott/snowpack#1213

@davidgarsan
Copy link
Author

You're right @LarsDenBakker, apparently that's the issue. I'll check it there 👍

@LarsDenBakker
Copy link
Member

Will close this one in favor of tracking this on the snowpack side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants