MCPcopy
hub / github.com/angular/angular / configureInterceptor

Function configureInterceptor

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

resetTestingModuleMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…