Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/angular
/ act
Function
act
packages/private/testing/src/utils.ts:335–341 ·
view source on GitHub ↗
(fn: () => T)
Source
from the content-addressed store, hash-verified
333
* ```
334
*/
335
export
function
act<T>(fn: () => T): T {
336
try {
337
return
fn();
338
} finally {
339
TestBed.tick();
340
}
341
}
Callers
10
compat_form.spec.ts
File · 0.90
interop.spec.ts
File · 0.90
signal_form_control_web.spec.ts
File · 0.90
form_field.spec.ts
File · 0.90
setupRadioGroup
Function · 0.90
setupRadioWithBindingsGroup
Function · 0.90
field_proxy.spec.ts
File · 0.90
focus.spec.ts
File · 0.90
parse_errors.spec.ts
File · 0.90
form_root.spec.ts
File · 0.90
Calls
2
tick
Method · 0.65
fn
Function · 0.50
Tested by
2
setupRadioGroup
Function · 0.72
setupRadioWithBindingsGroup
Function · 0.72