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

Function act

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

Source from the content-addressed store, hash-verified

1560});
1561
1562function act<T>(fn: () => T): T {
1563 try {
1564 return fn();
1565 } finally {
1566 TestBed.tick();
1567 }
1568}
1569
1570async function actAsync<T>(fn: () => T): Promise<T> {
1571 try {

Callers 1

interop.spec.tsFile · 0.70

Calls 2

tickMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected