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

Method setSystemTime

packages/jest-fake-timers/src/modernFakeTimers.ts:166–170  ·  view source on GitHub ↗
(now?: number | Date | TemporalTimelike)

Source from the content-addressed store, hash-verified

164 }
165
166 setSystemTime(now?: number | Date | TemporalTimelike): void {
167 if (this._checkFakeTimers()) {
168 this._clock.setSystemTime(now);
169 }
170 }
171
172 setTimerTickMode(tickModeConfig: {
173 mode: 'interval' | 'manual' | 'nextAsync';

Callers

nothing calls this directly

Calls 2

_checkFakeTimersMethod · 0.95
setSystemTimeMethod · 0.65

Tested by

no test coverage detected