We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb6e695 commit b2a4df5Copy full SHA for b2a4df5
docs/release-source/release/fake-timers.md
@@ -150,6 +150,13 @@ Causes all timers scheduled within the affected time range to be called. `time`
150
151
The `tickAsync()` will also break the event loop, allowing any scheduled promise callbacks to execute _before_ running the timers.
152
153
+#### `clock.jump(time);`
154
+
155
+Advance the clock by jumping forward in time, firing callbacks at most once.
156
+`time` takes the same formats as [`clock.tick`](#clockticktime--await-clocktickasynctime).
157
158
+This can be used to simulate the JS engine (such as a browser) being put to sleep and resumed later, skipping intermediary timers.
159
160
#### `clock.next();` / `await clock.nextAsync()`
161
162
Advances the clock to the the moment of the first scheduled timer, firing it.
0 commit comments