C8 7.12 and node 18.11: Tests are not running
See original GitHub issueC8 version: 7.12.0 Node version: 18.11.0 Platform: Darwin CLC02DRB4AMD6R 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 29 04:31:06 PDT 2022; root:xnu-7195.141.39~2/RELEASE_X86_64 x86_64 (Mac OS 11.7)
When i run node --test src/
my tests are running.
When i use C8 c8 node --test src/
, no tests are running, and no coverage.
And I see an error:
ERROR: Coverage for lines (0%) does not meet global threshold (90%)
zsh: segmentation fault c8 node --test src/
.nycrc
{
"all": true,
"include": [
"src/**/*.js"
],
"exclude": [
"**/*.test.js",
"**/__fixtures__/**"
],
"reporter": [
"text",
"text-summary",
"lcov",
"clover"
],
"check-coverage": true,
"watermarks": {
"lines": [
80,
95
],
"functions": [
80,
95
],
"branches": [
80,
95
],
"statements": [
80,
95
]
}
}
Tested with node 18.10.0, and it was working
Has node 18.11.0 a breaking change or bug, or is it a C8 issue?
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
Tests are not running anymore with C8 on node 18.11 #45013
When i use C8 c8 node --test src/ , no tests are running, and no coverage. And I see an error: ERROR: Coverage...
Read more >c8 - npm
Latest version: 7.12.0, last published: 5 months ago. Start using c8 in your project by running `npm i c8`. There are 85 other...
Read more >Tests not running in Test Explorer - visual studio
All tests are running, all tests are showing the right test outcome. However, the tests are not running when using the Visual Studio...
Read more >Coverage - Japa tests runner
Use existing tools like nyc and c8 to collect coverage metrics for Japa tests. ... the npm registry and update the test script...
Read more >Node.js Unit Testing: Get Started Quickly With Examples
Unit testing improves your code's quality and confidence. Find bugs early on in the software development lifecycle with a Node.js unit test.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In the new version of will include the fix. Node 18 release date is 25 oktober. Node 19 release date is 1 november.
Fix was just to late for 19.0.0
Fix isnt in node 18.12 from yesterday, i think we have to wait another week Release schedule for 19.x: https://github.com/nodejs/Release/issues/793