MCPcopy Create free account
hub / github.com/angular/angular / tickToNext

Method tickToNext

packages/zone.js/lib/zone-spec/fake-async-test.ts:190–205  ·  view source on GitHub ↗
(
    step: number = 1,
    doTick?: (elapsed: number) => void,
    tickOptions?: {
      processNewMacroTasksSynchronously: boolean;
    },
  )

Source from the content-addressed store, hash-verified

188 }
189
190 tickToNext(
191 step: number = 1,
192 doTick?: (elapsed: number) => void,
193 tickOptions?: {
194 processNewMacroTasksSynchronously: boolean;
195 },
196 ) {
197 if (this._schedulerQueue.length < step) {
198 return;
199 }
200 // Find the last task currently queued in the scheduler queue and tick
201 // till that time.
202 const startTime = this._currentTickTime;
203 const targetTask = this._schedulerQueue[step - 1];
204 this.tick(targetTask.endTime - startTime, doTick, tickOptions);
205 }
206
207 tick(
208 millis: number = 0,

Callers 2

patchJestFunction · 0.45
tickToNextMethod · 0.45

Calls 1

tickMethod · 0.95

Tested by

no test coverage detected