MCPcopy
hub / github.com/angular/angular / advance

Function advance

packages/router/test/integration/integration_helpers.ts:409–415  ·  view source on GitHub ↗
(
  fixture: ComponentFixture<unknown>,
  millis: number = 1,
)

Source from the content-addressed store, hash-verified

407}
408
409export async function advance(
410 fixture: ComponentFixture<unknown>,
411 millis: number = 1,
412): Promise<void> {
413 await timeout(millis);
414 fixture.detectChanges();
415}
416
417export async function createRoot<T>(router: Router, type: Type<T>): Promise<ComponentFixture<T>> {
418 const f = TestBed.createComponent<T>(type);

Calls 2

timeoutFunction · 0.90
detectChangesMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…