You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
maayanbar13
changed the title
When a an expect call fails inside jest.isolateModules the sandbox doesn't get unloaded
When an expect call fails inside jest.isolateModules the sandbox doesn't get unloaded
Feb 7, 2020
Oh, what an oversight! Looks like there's just a try-finally missing that should be in the implementation of isolateModules in jest-runtime (unless I'm missing something that makes it more complicated). PRs welcome!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
When a test fails inside
jest.isolateModules
callback, the sandbox registry doesn't close, causing all other tests using isolateModules to fail.To Reproduce
Expected behavior
Should fail the first tests, but the other test should pass.
Link to repl or repo (highly encouraged)
https://repl.it/@maayanbar/Jest-isolateModules
envinfo
The text was updated successfully, but these errors were encountered: