OptionaladvanceOptionalignoreDon't throw error when asked to fake timers that are not present.
OptionalloopThe maximum number of timers that will be run when calling runAll()
OptionalnowInstalls fake timers with the specified unix epoch (default: 0)
OptionalshouldTells @sinonjs/fake-timers to increment mocked time automatically based on the real system time shift (e.g. the mocked time will be incremented by 20ms for every 20ms change in the real system time) (default: false)
OptionalshouldTells FakeTimers to clear 'native' (i.e. not fake) timers by delegating to their respective handlers.
OptionaltoAn array with names of global methods and APIs to fake.
For instance, vi.useFakeTimer({ toFake: ['setTimeout', 'performance'] }) will fake only setTimeout() and performance.now()
Relevant only when using with shouldAdvanceTime: true. increment mocked time by advanceTimeDelta ms every advanceTimeDelta ms change in the real system time (default: 20)