MCPcopy
hub / github.com/angular/angular / tick

Function tick

packages/core/testing/src/fake_async.ts:140–147  ·  view source on GitHub ↗
(
  millis: number = 0,
  tickOptions: {processNewMacroTasksSynchronously: boolean} = {
    processNewMacroTasksSynchronously: true,
  },
)

Source from the content-addressed store, hash-verified

138 * @publicApi
139 */
140export function tick(
141 millis: number = 0,
142 tickOptions: {processNewMacroTasksSynchronously: boolean} = {
143 processNewMacroTasksSynchronously: true,
144 },
145): void {
146 return withFakeAsyncTestModule((m) => m.tick(millis, tickOptions));
147}
148
149/**
150 * IMPORTANT: This API requires Zone.js and cannot be used with the Vitest test runner

Calls 2

withFakeAsyncTestModuleFunction · 0.85
tickMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…