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:1508–1514 ·
view source on GitHub ↗
(fn: () => T)
Source
from the content-addressed store, hash-verified
1506
});
1507
1508
function
act<T>(fn: () => T): T {
1509
try {
1510
return
fn();
1511
} finally {
1512
TestBed.tick();
1513
}
1514
}
1515
1516
async
function
actAsync<T>(fn: () => T): Promise<T> {
1517
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