MCPcopy Create free account
hub / github.com/angular/angular / configureInterceptor

Function configureInterceptor

packages/common/http/test/transfer_cache_spec.ts:87–101  ·  view source on GitHub ↗
(options: {includeRequestsWithAuthHeaders?: boolean} = {})

Source from the content-addressed store, hash-verified

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'];

Callers 1

Calls 2

resetTestingModuleMethod · 0.65

Tested by

no test coverage detected