You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bcoe do you agree that the expected behavior would be to generate coverage?
I have absolutely no insight into the inner workings of istanbul / nyc, but if you agree with the overall direction, I will take a stab at a PR. Additionally if you had any thoughts / ideas about the implementation, feel free to share :)
This is not directly possible. I think the problem is that --require modules are loaded before nyc can hook the loader system. To accomplish your goal you will need to pre-instrument your code using:
Imagine the following code written inside of a testcase.
I am attempting to generate coverage for
./lib/index.js
.Expected Behavior
Coverage is generated for
./lib/index.js
Observed Behavior
No coverage is generated.
The text was updated successfully, but these errors were encountered: