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

Avoid hitting the file system #33

Closed
SimenB opened this issue Jun 22, 2019 · 0 comments · Fixed by #36
Closed

Avoid hitting the file system #33

SimenB opened this issue Jun 22, 2019 · 0 comments · Fixed by #36

Comments

@SimenB
Copy link
Member

SimenB commented Jun 22, 2019

I'd like to use this module in Jest. But this module tries to look at the filesystem and read sourcemaps on its own, which breaks down. I'd love an alternative API that allows me to pass in:

  • raw source code (from "disk")
  • the source code that was executed/instrumented
  • the source map for this

I cobbled this together quickly, which allowed me to get a PoC working in Jest: https://github.com/SimenB/v8-to-istanbul/commit/6d1560b890f64b05e476e64719e3ffd26ddf357c

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