(options: {includeRequestsWithAuthHeaders?: boolean} = {})
| 85 | }); |
| 86 | |
| 87 | function configureInterceptor(options: {includeRequestsWithAuthHeaders?: boolean} = {}): void { |
| 88 | TestBed.resetTestingModule(); |
| 89 | TestBed.configureTestingModule({ |
| 90 | providers: [ |
| 91 | TransferState, |
| 92 | { |
| 93 | provide: CACHE_OPTIONS, |
| 94 | useValue: { |
| 95 | isCacheActive: true, |
| 96 | ...options, |
| 97 | }, |
| 98 | }, |
| 99 | ], |
| 100 | }); |
| 101 | } |
| 102 | |
| 103 | function runOnServer<T>(callback: () => T): T { |
| 104 | const previousServerMode = globalThis['ngServerMode']; |
no test coverage detected