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

Function act

packages/private/testing/src/utils.ts:335–341  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

333 * ```
334 */
335export function act<T>(fn: () => T): T {
336 try {
337 return fn();
338 } finally {
339 TestBed.tick();
340 }
341}

Callers 10

interop.spec.tsFile · 0.90
form_field.spec.tsFile · 0.90
setupRadioGroupFunction · 0.90
focus.spec.tsFile · 0.90
form_root.spec.tsFile · 0.90

Calls 2

tickMethod · 0.65
fnFunction · 0.50

Tested by 2

setupRadioGroupFunction · 0.72