MCPcopy
hub / github.com/angular/angular / act

Function act

packages/forms/signals/test/node/parse_errors.spec.ts:415–419  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

413}
414
415async function act<T>(fn: () => T): Promise<T> {
416 const result = fn();
417 await TestBed.inject(ApplicationRef).whenStable();
418 return result;
419}

Callers 1

Calls 3

whenStableMethod · 0.65
injectMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected