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 think we're waiting on sinon. In the mean time I've been mocking timers/promises with an implementation that delegates to global setTimeout so it's correctly mocked by useFakeTimers. I'm not sure how accurate my mock is so I won't bother sharing it here.
Describe the bug
mock timers do not mock node's timers/promises or AbortSignal.timeout
There is an open issue in sinon fake-timers to implement these.
sinonjs/fake-timers#418
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-5rmugo?file=test/basic.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: