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

Function act

packages/forms/signals/test/web/focus.spec.ts:312–316  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

310});
311
312async function act<T>(fn: () => T): Promise<T> {
313 const result = fn();
314 await TestBed.inject(ApplicationRef).whenStable();
315 return result;
316}

Callers 1

focus.spec.tsFile · 0.70

Calls 3

whenStableMethod · 0.65
injectMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected