Spurious `'require.cache' modification is not permitted` warnings since 25.5.0
See original GitHub issueš„ Regression Report
Since upgrading to version 25.5.0
I keep getting this warning logged for each test: 'require.cache' modification is not permitted
.
I assume this is due to #9841, but as this is a change in existing behaviour (and thus a breaking change) I would have not expected this in a minor release, but in a major release.
Last working version
Worked up to version: 25.4.0
Stopped working in version: 25.5.0
Expected behavior
I would have expected this to work as before, without logging warnings.
Run npx envinfo --preset jest
System: OS: macOS 10.15.4 CPU: (8) x64 IntelĀ® Coreā¢ i7-4870HQ CPU @ 2.50GHz Binaries: Node: 12.14.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.4 - /usr/local/bin/npm npmPackages: jest: ^25.5.0 => 25.5.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:8 (1 by maintainers)
Top Results From Across the Web
node.js require() cache - possible to invalidate? - Stack Overflow
Modules are cached after the first time they are loaded. This means (among other things) that every call to require('foo') will get exactly...
Read more >node: require.cache - Bambielli's Blog
Invalidating the cacheāā It is possible to invalidate the require. cache for a particular module: just delete the key from the require.
Read more >Endress+Hauser ReadWin2000.msi - Hybrid Analysis
Exception caught in CPrintRTF::GetScrollableTextRTF while attempting to print a ScrollableText control. ... Failed to locate the ScrollableTextĀ ...
Read more >LLWJ Mil I_44 %l - World Radio History
or its small power requirements can be drawn from any amplifier. Low noise freq. changer. Smooth 2 gang tuning feeding no leu than...
Read more >sysadmin - Sysads Gazette
Using Windows OS without an updated AntiVirus is not really responsible. ... property not supported) Photos opened in Nikon Capture NX 2.
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 FreeTop 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
Top GitHub Comments
Released in 25.5.4
Iām all for warning as it does serve a purpose, but would postpone that to a (future) major release and āsilenceā them for now.