MCPcopy Index your code
hub / github.com/angular/angular / act

Function act

packages/core/test/resource/params_status_spec.ts:122–126  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

120});
121
122async function act<T>(fn: () => T): Promise<T> {
123 const result = fn();
124 await TestBed.inject(ApplicationRef).whenStable();
125 return result;
126}

Callers 1

Calls 3

whenStableMethod · 0.65
injectMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected