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

Function act

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

Source from the content-addressed store, hash-verified

6543}
6544
6545function act<T>(fn: () => T): T {
6546 try {
6547 return fn();
6548 } finally {
6549 TestBed.tick();
6550 }
6551}
6552
6553/**
6554 * 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