Giter Site home page Giter Site logo

Comments (17)

kwmhp avatar kwmhp commented on June 12, 2024

Hi
This seems to be the same problem as in my issue #14764
Have you tested this with Node 20.9.0?

from jest.

TWiStErRob avatar TWiStErRob commented on June 12, 2024

Yep, confirmed 20.9.0 -> 20.10.0 causes it.

Raised nodejs/node#51251

from jest.

ritchieanesco avatar ritchieanesco commented on June 12, 2024

+1 also getting code coverage failure after updating to 20.10.0.

from jest.

cenfun avatar cenfun commented on June 12, 2024

I found that comment following two lines in node_modules/collect-v8-coverage/index.js will fix it.

    //await this.postSession('Profiler.stopPreciseCoverage');

    //await this.postSession('Profiler.disable');

image

from jest.

ritchieanesco avatar ritchieanesco commented on June 12, 2024

Verified that commenting out both lines fixes the issue.

from jest.

github-actions avatar github-actions commented on June 12, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

from jest.

TWiStErRob avatar TWiStErRob commented on June 12, 2024

Still an issue.

from jest.

emiwidknowit avatar emiwidknowit commented on June 12, 2024

still an issue

from jest.

jeroenzwart avatar jeroenzwart commented on June 12, 2024

Yep, confirmed 20.9.0 -> 20.10.0 causes it.

Raised nodejs/node#51251

Still a issue and same problem with the upgrade

from jest.

cenfun avatar cenfun commented on June 12, 2024

Seems it can be fixed with await this.postSession('Debugger.enable');
see https://github.com/SimenB/collect-v8-coverage/pull/235/files

from jest.

TatyanaVl avatar TatyanaVl commented on June 12, 2024

This is still an issue. Is there any progress?

from jest.

kmccammon avatar kmccammon commented on June 12, 2024

I posted this originally on: nodejs/node#51251

Reposting here in case it's helpful...

I have been facing the same issue: my coverage report was 100% with 20.9.0, but as of 20.10.0, it now reports less than 100% coverage and somewhat randomly flags lines not covered.

I noticed that I get the same coverage reporting flakiness with 18.20.2 (I initially saw this issue when my GitHub actions started to fail). Coverage works fine with 18.19.1.

So there seems to be a change between 18.19.1 and 18.20.0 that causes the issue as well as between 20.9.0 to 20.10.0.

This is now causing my GitHub CI/CD actions to fail since GitHub is using 18.20.2.

from jest.

TatyanaVl avatar TatyanaVl commented on June 12, 2024

@kmccammon - we are facing exactly the same issue.

from jest.

github-actions avatar github-actions commented on June 12, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

from jest.

TWiStErRob avatar TWiStErRob commented on June 12, 2024

Can't call it closed stale without a triage...

from jest.

kmccammon avatar kmccammon commented on June 12, 2024

Can't call it closed stale without a triage...

Agreed, I'm stuck on node version 18.19.1 until this coverage issue is resolved.

from jest.

TWiStErRob avatar TWiStErRob commented on June 12, 2024

I think we can safely say this project is abandoned:
https://github.com/jestjs/jest/issues?q=is%3Aclosed+label%3A%22Needs+Triage%22+label%3AStale

A ton of them are auto-closed without a single comment.

from jest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.