MCPcopy Index your code
hub / github.com/angular/angular / act

Function act

packages/forms/signals/test/web/interop.spec.ts:1445–1451  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

1443});
1444
1445function act<T>(fn: () => T): T {
1446 try {
1447 return fn();
1448 } finally {
1449 TestBed.tick();
1450 }
1451}
1452
1453async function actAsync<T>(fn: () => T): Promise<T> {
1454 try {

Callers 1

interop.spec.tsFile · 0.70

Calls 2

tickMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected