nyc icon indicating copy to clipboard operation
nyc copied to clipboard

Possible to load source code from source map for coverage report?

Open michael-brade opened this issue 4 years ago • 2 comments

Hi,

is it possible to load the source code of a file for the html reporter from the source map instead of looking for it on the file system? I have a case of a generated code without a proper mapping, the coverage summary is fine, but when I click on the file, it says "Unable to lookup souce... ENOENT".

I saw that there is a sourceFinder option in Context, but it does not seem to be used for loading sources from source maps yet.

Environment Information

  System:
    OS: Linux 4.19 Debian GNU/Linux bullseye/sid
    CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
    Memory: 1.57 GB / 15.57 GB
  Binaries:
    Node: 12.16.2 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.4 - /usr/local/bin/npm
  npmPackages:
    @babel/core: 7.x => 7.9.6 
    nyc: 15.x => 15.0.1 
    rollup-plugin-babel: 4.x => 4.4.0 

michael-brade avatar May 01 '20 16:05 michael-brade

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jun 18 '21 23:06 stale[bot]

Yeah, I think this is still relevant, nothing has changed since then and no new release with changes regarding this issue has happened.

michael-brade avatar Jun 21 '21 10:06 michael-brade