(fn: () => T)
| 6484 | } |
| 6485 | |
| 6486 | function act<T>(fn: () => T): T { |
| 6487 | try { |
| 6488 | return fn(); |
| 6489 | } finally { |
| 6490 | TestBed.tick(); |
| 6491 | } |
| 6492 | } |
| 6493 | |
| 6494 | /** |
| 6495 | * Replace with `Promise.withResolvers()` once it's available. |
no test coverage detected