-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
No coverage reports for files that are executed by vm.runInContext. #9349
Comments
This should work correctly if using v8 coverage, which will be available in the next version of Jest. I don't think we're going to add support to it for the current babel based approach, as it'd require us to hook into |
I checked again with v8 coverage setting, and there's still no coverage reports for vm. thanks |
Hi, Please refer to the repo: |
@SimenB I found that it works after commenting this line. V8 coverage is there but Jest filters out the files. Hope this is helpful. |
However, this test case |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
No coverage reports for files that are executed by vm.runInContext.
To Reproduce
Steps to reproduce the behavior:
console.log('hello');
jest --coverage
, no coverage report of 1. file.Expected behavior
Show the coverage report.
Link to repl or repo (highly encouraged)
istanbuljs/istanbuljs#85
Not sure if it's related. However
istanbul-lib-hooks
is removed recently from Jest.envinfo
System:
OS: macOS Mojave 10.14.6
CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Binaries:
Node: 12.13.0 - /usr/local/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.12.0 - /usr/local/bin/npm
npmPackages:
jest: ^23.6.0 => 23.6.0
System:
OS: macOS Mojave 10.14.6
CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Binaries:
Node: 12.13.0 - /usr/local/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.12.0 - /usr/local/bin/npm
npmPackages:
jest: ^24.9.0 => 24.9.0
Both jest versions are the same.
The text was updated successfully, but these errors were encountered: