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
I just discovered this (very helpful!) package after stumbling across the jest issue here jestjs/jest#2549
My issue was that in a test I was getting different behaviour from a mongoose library that use instanceof Function. However, when installing your package I've found that jest.useFakeTimers no longer works. Is that expected? If so, is there any way around this? Would value some advice on how best to mock time now!
Thanks
The text was updated successfully, but these errors were encountered:
Never used Jest's fake timers but I think/hope I managed to implement them. I tried some examples from the Jest documentation and they seem to work now.
Please try the new version 29.3.0 and let me know if fake timers work now as expected.
Hi,
I just discovered this (very helpful!) package after stumbling across the jest issue here jestjs/jest#2549
My issue was that in a test I was getting different behaviour from a mongoose library that use instanceof Function. However, when installing your package I've found that jest.useFakeTimers no longer works. Is that expected? If so, is there any way around this? Would value some advice on how best to mock time now!
Thanks
The text was updated successfully, but these errors were encountered: