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
When using fake timers, console logs after timers do not fire :/
By using the sample code from the Timers Guide, there are few things I don't understand.
First, only the first test's mock seems to fire (or at least is shown in the console).
Second, the console log at the end of the third test never fires (the difference I think is that is the only test using advanceToNextTimer)
In my own code, I was hoping for some console logging to help debug what values are and what has been called, but my logs are coming blank :(
Describe the bug
When using fake timers, console logs after timers do not fire :/
By using the sample code from the Timers Guide, there are few things I don't understand.
First, only the first test's mock seems to fire (or at least is shown in the console).
Second, the console log at the end of the third test never fires (the difference I think is that is the only test using
advanceToNextTimer
)In my own code, I was hoping for some console logging to help debug what values are and what has been called, but my logs are coming blank :(
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-38lgxv?file=test/suite.test.ts
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: