MCPcopy
hub / github.com/jestjs/jest / advanceTimersByTime

Method advanceTimersByTime

packages/jest-environment/src/index.ts:67–67  ·  view source on GitHub ↗

* Advances all timers by `msToRun` milliseconds. All pending "macro-tasks" * that have been queued via `setTimeout()` or `setInterval()`, and would be * executed within this time frame will be executed.

(msToRun: number | TemporalDurationLike)

Source from the content-addressed store, hash-verified

65 * executed within this time frame will be executed.
66 */
67 advanceTimersByTime(msToRun: number | TemporalDurationLike): void;
68 /**
69 * Advances all timers by `msToRun` milliseconds, firing callbacks if necessary.
70 *

Calls

no outgoing calls

Tested by

no test coverage detected