โ‰ˆ the.bay.news

Fake timers and await are fighting in your Vitest test

DEV Community
Fake timers and await are fighting in your Vitest test
advanceTimersByTime moves the clock but not the microtask queue. That mismatch is why your timer test hangs on a promise that never settles.

0 comments

Sign in to join the discussion โ€” your thebay.events account works here.

No comments yet.