Open Whoaa512 opened 3 years ago
I'm not sure what you mean, can you elaborate?
Reading the linked issue - you simply must not "clean up" the window, ever. Modules throughout the graph, including react itself, will have cached window
on first require, and if you change that later, they'll still have a reference to the previous value.
Initially found this issue while migrating to jest-circus and filed an issue there but turns out it's an enzyme bug
Link to repro repo
https://github.com/Whoaa512/jest-circus-each-bug
API
Version
Versions listed in the repo linked above
Adapter