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

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

Open
michael-brade opened this issue May 1, 2020 · 2 comments · May be fixed by #1584
Open

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

michael-brade opened this issue May 1, 2020 · 2 comments · May be fixed by #1584

Comments

@michael-brade
Copy link

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 
@stale
Copy link

stale bot commented Jun 18, 2021

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 stale bot added the stale label Jun 18, 2021
@michael-brade
Copy link
Author

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

@stale stale bot removed the stale label Jun 21, 2021
satouriko added a commit to satouriko/nyc that referenced this issue Sep 25, 2024
@satouriko satouriko linked a pull request Sep 25, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant