(expectedTeardownValue: boolean)
| 28 | globalThis.afterEach?.(getCleanupHook(true)); |
| 29 | |
| 30 | export function getCleanupHook(expectedTeardownValue: boolean): VoidFunction { |
| 31 | return () => { |
| 32 | const testBed = TestBedImpl.INSTANCE; |
| 33 | if (testBed.shouldTearDownTestingModule() === expectedTeardownValue) { |
| 34 | testBed.resetTestingModule(); |
| 35 | resetFakeAsyncZoneIfExists(); |
| 36 | } |
| 37 | }; |
| 38 | } |
no test coverage detected
searching dependent graphs…