Skip to content

Commit bc2e44e

Browse files
committed
docs: update
1 parent 2572278 commit bc2e44e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/api/vi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,8 @@ Mocking `nextTick` is not supported when running Vitest inside `node:child_proce
818818
The implementation is based internally on [`@sinonjs/fake-timers`](https://github.com/sinonjs/fake-timers).
819819

820820
::: tip
821-
`vi.useFakeTimers()` does not automatically mock `process.nextTick`.
822-
But you can enable it by specifying the option in `toFake` argument: `vi.useFakeTimers({ toFake: ['nextTick'] })`.
821+
`vi.useFakeTimers()` does not automatically mock `process.nextTick` and `queueMicrotask`.
822+
But you can enable it by specifying the option in `toFake` argument: `vi.useFakeTimers({ toFake: ['nextTick', 'queueMicrotask'] })`.
823823
:::
824824

825825
### vi.isFakeTimers {#vi-isfaketimers}

docs/config/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2345,7 +2345,7 @@ Installs fake timers with the specified Unix epoch.
23452345
#### fakeTimers.toFake
23462346

23472347
- **Type:** `('setTimeout' | 'clearTimeout' | 'setImmediate' | 'clearImmediate' | 'setInterval' | 'clearInterval' | 'Date' | 'nextTick' | 'hrtime' | 'requestAnimationFrame' | 'cancelAnimationFrame' | 'requestIdleCallback' | 'cancelIdleCallback' | 'performance' | 'queueMicrotask')[]`
2348-
- **Default:** everything available globally except `nextTick`
2348+
- **Default:** everything available globally except `nextTick` and `queueMicrotask`
23492349

23502350
An array with names of global methods and APIs to fake.
23512351

0 commit comments

Comments
 (0)