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

Function act

packages/forms/signals/test/web/form_field.spec.ts:6486–6492  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

6484}
6485
6486function act<T>(fn: () => T): T {
6487 try {
6488 return fn();
6489 } finally {
6490 TestBed.tick();
6491 }
6492}
6493
6494/**
6495 * Replace with `Promise.withResolvers()` once it's available.

Callers 3

form_field.spec.tsFile · 0.70
setupRadioGroupFunction · 0.70

Calls 2

tickMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected