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
EDIT:
If I don't use fakeAsync it works.
If I use jest.useFakeTimers() I have the same problem, I have to call jest.useRealTimers() before the user.click if I want to make it work again.
The text was updated successfully, but these errors were encountered:
@KarmaCop213fakeAsync is a bit tricky, and I won't recommend it.
See #438 for an example with jest fake timers.
The trick is to make user-event aware of the timers, and provide the advanceTimers method a way to advance the fake time:
Can't click on button inside sidenav when using fakeAsync.
Simple example:
getting:
with these lib versions:
EDIT:
If I don't use
fakeAsync
it works.If I use
jest.useFakeTimers()
I have the same problem, I have to calljest.useRealTimers()
before theuser.click
if I want to make it work again.The text was updated successfully, but these errors were encountered: