Doesn't work with `weak` on Node 12
See original GitHub issueJest has --detectLeaks amazing feature that is powered by weak npm package.
The problem is that weak doesn’t work with Node 12 (I’ve opened an issue there: https://github.com/TooTallNate/node-weak/issues/99).
The best way would be for them to fix it. But, it looks not very maintained ATM.
At the same time I found that @danfuzz there suggesting to use other package as API-compatible replacement for weak that is using a sustainable NAPI: https://github.com/node-ffi-napi/weak-napi
Should we consider to try it and if it works to switch Jest to use that package instead?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:22 (5 by maintainers)
Top Results From Across the Web
Top 10 Most Common Node.js Developer Mistakes - Toptal
However, like any other platform, Node. js is vulnerable to developer problems and issues. Some of these mistakes degrade performance, while others make...
Read more >node.js - Error: uncaughtException: Cannot find module weak
Problem solved by downgrading npm to 6.14.12 and node to v10.24.1 versions.
Read more >6 reasons your Node.js apps are failing - IBM Developer
Unresponsive application, possibly looping or hanging; Poor performance; Crash or abort in native code; Unexpected application behavior or functional issue. The ...
Read more >15 Common Error Codes in Node.js and How to Fix Them
The fix for this problem is to ensure that the target service is active and accepting connections at the specified endpoint. 5.
Read more >Fix a problem on your Android phone or tablet
If Netflix isn't working on your Android phone or tablet, you can often fix the problem with these basic troubleshooting steps.
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

Are there any news? I still don’t see any releases since August.
In which version of Jest is it available after all? Latest release was on Aug 15, so looks like this fix has not been released yet?