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

Method reset

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

Source from the content-addressed store, hash-verified

131 }
132
133 reset(): void {
134 this._cancelledTicks = {};
135 this._now = 0;
136 this._ticks = [];
137 this._immediates = [];
138 this._timers = new Map();
139 }
140
141 now(): number {
142 if (this._fakingTime) {

Callers 7

constructorMethod · 0.95
assertionErrorMessageFunction · 0.45
assertionErrorMessageFunction · 0.45
colorizeFunction · 0.45
formatTestNameByPatternFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected