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

Method now

packages/jest-fake-timers/src/legacyFakeTimers.ts:141–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 }
140
141 now(): number {
142 if (this._fakingTime) {
143 return this._now;
144 }
145 return Date.now();
146 }
147
148 runAllTicks(): void {
149 this._checkFakeTimers();

Callers

nothing calls this directly

Calls 1

nowMethod · 0.65

Tested by

no test coverage detected