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
If you encounter a problem with Jest where the tests are not running due to the fake timers, it could be because MongoDB memory server relies on nextTick. To resolve this issue, you should avoid faking the nextTick function. By allowing the natural behavior of nextTick, you should be able to run the tests successfully with Jest.
jest.useFakeTimers({doNotFake: ['nextTick'],// do not fake nextTick behavior for mongo in memory});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If you encounter a problem with Jest where the tests are not running due to the fake timers, it could be because MongoDB memory server relies on nextTick. To resolve this issue, you should avoid faking the nextTick function. By allowing the natural behavior of nextTick, you should be able to run the tests successfully with Jest.
Beta Was this translation helpful? Give feedback.
All reactions