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

Function act

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

Source from the content-addressed store, hash-verified

1506});
1507
1508function act<T>(fn: () => T): T {
1509 try {
1510 return fn();
1511 } finally {
1512 TestBed.tick();
1513 }
1514}
1515
1516async function actAsync<T>(fn: () => T): Promise<T> {
1517 try {

Callers 1

interop.spec.tsFile · 0.70

Calls 2

tickMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected