Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1562
function
act<T>(fn: () => T): T {
1563
try {
1564
return
fn();
1565
} finally {
1566
TestBed.tick();
1567
}
1568
}
1569
1570
async
function
actAsync<T>(fn: () => T): Promise<T> {
1571
try {
Callers
1
interop.spec.ts
File · 0.70
Calls
2
tick
Method · 0.65
fn
Function · 0.50
Tested by
no test coverage detected