We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
Node test coverage fails when using rewire 7.0.0. Tests pass but coverage breaks:
// test/ok.js const myFunction = rewire('../src/my-module').__get__('myFunction');
Also tried
let myFunction; before(() => { myFunction = rewire('../src/my-module').__get__('myFunction'); });
Execution
node --test --experimental-test-coverage
✔ test/ok.js ℹ Warning: Could not report code coverage. TypeError: Cannot read properties of undefined (reading 'line') ℹ tests 20 ℹ suites 7 ℹ pass 20 ℹ fail 0 ℹ cancelled 0 ℹ skipped 0 ℹ todo 0 ℹ duration_ms 5970.011996
Node: 21.7.3 Rewire: 7.0.0
21.7.3
7.0.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
Node test coverage fails when using rewire 7.0.0. Tests pass but coverage breaks:
Line of code that fails
Also tried
Execution
Results
✔ test/ok.js
ℹ Warning: Could not report code coverage. TypeError: Cannot read properties of undefined (reading 'line')
ℹ tests 20
ℹ suites 7
ℹ pass 20
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 5970.011996
Versions
Node:
21.7.3
Rewire:
7.0.0
The text was updated successfully, but these errors were encountered: