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

Function act

packages/forms/signals/test/web/number_input.spec.ts:469–475  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

467}
468
469function act<T>(fn: () => T): T {
470 try {
471 return fn();
472 } finally {
473 TestBed.tick();
474 }
475}

Callers 2

setInputValueFunction · 0.70

Calls 2

tickMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected