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

Blank lines in code are creating growing offset for coverage in html reports #14

Open
liqueurdetoile opened this issue Apr 13, 2023 · 0 comments

Comments

@liqueurdetoile
Copy link

Hi,

I'm using coverage-istanbul-loader + karma-coverage-istanbul-reporter in a webpack + typescript + karma setup for tests (no Babel). All is working fine and coverage calculation is accurate. Thanks a lot for your work.

I'm only facing a minor, but quite annoying issue. When looking in html report, coverage informations are not at the same height that the related line in code. It appears that blank lines are ignored and each one add 1 line to the offset, that obviously grows wider and wider after many of those.

Here's a compared screenshot : https://imgur.com/a/QFdxQBw

Not really sure if it's related to your loader or to the reporter. I've checked available options in both but didn't find something relevant to fix this.

Any clue to solve this ?

Thanks !

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

1 participant