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

Function act

packages/forms/signals/test/web/template_fvc.spec.ts:807–813  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

805});
806
807function act<T>(fn: () => T): T {
808 try {
809 return fn();
810 } finally {
811 TestBed.tick();
812 }
813}
814
815// Async version that waits for application to stabilize (for NgModel's async value updates)
816async function actAsync<T>(fn: () => T): Promise<T> {

Callers 1

Calls 2

tickMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected