question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

C8 7.12 and node 18.11: Tests are not running

See original GitHub issue

C8 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:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
w3nlcommented, Oct 23, 2022

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

0reactions
w3nlcommented, Oct 26, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found