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

Function act

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

Source from the content-addressed store, hash-verified

6503}
6504
6505function act<T>(fn: () => T): T {
6506 try {
6507 return fn();
6508 } finally {
6509 TestBed.tick();
6510 }
6511}
6512
6513/**
6514 * 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