(fn: (fakeAsyncTestModule: any) => any)
| 15 | } |
| 16 | |
| 17 | function withFakeAsyncTestModule(fn: (fakeAsyncTestModule: any) => any): any { |
| 18 | const fakeAsyncTestModule = getFakeAsyncTestModule(); |
| 19 | if (!fakeAsyncTestModule) { |
| 20 | throw new Error(`zone-testing.js is needed for the fakeAsync() test helper but could not be found. |
| 21 | Please make sure that your environment includes zone.js/testing`); |
| 22 | } |
| 23 | return fn(fakeAsyncTestModule); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * IMPORTANT: This API requires Zone.js and cannot be used with the Vitest test runner |
no test coverage detected
searching dependent graphs…