Comments (17)
Hi
This seems to be the same problem as in my issue #14764
Have you tested this with Node 20.9.0?
from jest.
Yep, confirmed 20.9.0 -> 20.10.0 causes it.
Raised nodejs/node#51251
from jest.
+1 also getting code coverage failure after updating to 20.10.0.
from jest.
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');
from jest.
Verified that commenting out both lines fixes the issue.
from jest.
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.
Still an issue.
from jest.
still an issue
from jest.
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.
Seems it can be fixed with await this.postSession('Debugger.enable');
see https://github.com/SimenB/collect-v8-coverage/pull/235/files
from jest.
This is still an issue. Is there any progress?
from jest.
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.
@kmccammon - we are facing exactly the same issue.
from jest.
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.
Can't call it closed stale without a triage...
from jest.
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.
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)
- [Docs]: All old Upgrade Guides before v28 to v29 are missing HOT 1
- [Please read the message below] HOT 1
- [Docs]: toThrow fails if error object contains a `cause` property HOT 1
- [Bug]: New SERIALIZABLE_PROPERTIES is only used by matcher-utils HOT 2
- [Bug]: Missing Initializer in const declaration HOT 1
- [Bug]: `ReferenceError: Export 'emit' is not defined in module` from Jest internals during suite setup. HOT 14
- [Bug]: DataCloneError: Symbol(jest.asymmetricMatcher) could not be cloned using `--workerThreads`. HOT 2
- [Bug]: jest.resetModules does not works for jest.unstable_mockModule HOT 2
- [Feature]: Predicate matching on snapshot values
- [Bug]: `it.each` from `@jest/globals` causes typescript errors with readonly arrays HOT 2
- [Bug]: Dependency with outdated Windows executables HOT 4
- [Bug]: npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. HOT 11
- [Docs]: broken link HOT 2
- [Bug]: broken runAllTimers
- [Bug]: Jest ignores near all files on Windows with GNU find HOT 2
- [Bug]: toMatchObject doesn't work if object contains File
- [Bug]: jest.mock('package-name') does nothing HOT 1
- [Bug]: Mocking Partials (in with ES6 modules) doesn't work as per documentation HOT 5
- [Feature]: Expose all matchers as asymmetric matchers
- [Bug]: Add top level `endTime` when using --json reporter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jest.