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

Function act

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

whenStableMethod · 0.65
injectMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected