Skip to content

Commit cad08ee

Browse files
authored
docs: add config param to useFakeTimer (#5213)
1 parent 7d9b1fb commit cad08ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/vi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ vi.useRealTimers()
736736

737737
### vi.useFakeTimers
738738

739-
- **Type:** `() => Vitest`
739+
- **Type:** `(config?: FakeTimerInstallOpts) => Vitest`
740740

741741
To enable mocking timers, you need to call this method. It will wrap all further calls to timers (such as `setTimeout`, `setInterval`, `clearTimeout`, `clearInterval`, `nextTick`, `setImmediate`, `clearImmediate`, and `Date`), until [`vi.useRealTimers()`](#vi-userealtimers) is called.
742742

0 commit comments

Comments
 (0)