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
Node 18 now has a built-in test runner. It has also been back-ported to 16. I've tried using c8 with it, and all I get is:
> c8 node --test --enable-source-maps ----------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------|---------|----------|---------|---------|------------------- All files | 0 | 0 | 0 | 0 | ----------|---------|----------|---------|---------|------------------- Segmentation fault (core dumped)
Steps to reproduce:
npm i c8 -D
package.json
test:node
c8
"test:only": "c8 node --test --enable-source-maps",
npm t
The text was updated successfully, but these errors were encountered:
I believe this is caused by:
nodejs/node#45013
And can't be fixed in c8 itself. You can confirm by running your tests with NODE_V8_COVERAGE=/tmp/coverage, without c8.
NODE_V8_COVERAGE=/tmp/coverage
Sorry, something went wrong.
Thanks for the info. I'll try again with the next node version.
No branches or pull requests
Node 18 now has a built-in test runner. It has also been back-ported to 16.
I've tried using c8 with it, and all I get is:
Steps to reproduce:
npm i c8 -D
package.json
and edittest:node
. prefix it withc8
so it says:"test:only": "c8 node --test --enable-source-maps",
npm t
The text was updated successfully, but these errors were encountered: