Vitest · Method
vi.useRealTimers
vi.useRealTimers() restores the real timer implementations after fake timers are enabled. Timers scheduled before the call are discarded.
Last updated
Syntax
function useRealTimers(): VitestIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
vi.useFakeTimersvi.setSystemTimevi.isFakeTimers