FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Blank lines in code are creating growing offset for coverage in html reports · Issue #14 · JS-DevTools/coverage-istanbul-loader · GitHub

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

Description

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 !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL