(fn: () => T)
| 6503 | } |
| 6504 | |
| 6505 | function act<T>(fn: () => T): T { |
| 6506 | try { |
| 6507 | return fn(); |
| 6508 | } finally { |
| 6509 | TestBed.tick(); |
| 6510 | } |
| 6511 | } |
| 6512 | |
| 6513 | /** |
| 6514 | * Replace with `Promise.withResolvers()` once it's available. |
no test coverage detected