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
When importing a module that's going to be mocked, the import actual is not respected therefore it goes into an infinite loop, this is pretty simple to replicate, using the official zustand testing example to reset the state between tests
Going a little but further, the first import inside the mock file is respected but after we override, the actual import is no longer respected, even using `vi.importActual' doesn't work as expected
Describe the bug
When importing a module that's going to be mocked, the import actual is not respected therefore it goes into an infinite loop, this is pretty simple to replicate, using the official
zustand
testing example to reset the state between testsReproduction
Simply use the zustand testing example https://docs.pmnd.rs/zustand/testing
Going a little but further, the first import inside the mock file is respected but after we override, the actual import is no longer respected, even using `vi.importActual' doesn't work as expected
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: