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.

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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
SimenBcommented, May 2, 2020

Released in 25.5.4

4reactions
BBosmancommented, Apr 29, 2020

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.

Read more comments on GitHub >

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

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