MCPcopy Index your code
hub / github.com/angular/angular / overrideProvider

Method overrideProvider

packages/core/testing/src/test_bed.ts:160–160  ·  view source on GitHub ↗

* Overwrites all providers for the given token with the given provider definition.

(
    token: any,
    provider: {useFactory: Function; deps: any[]; multi?: boolean},
  )

Source from the content-addressed store, hash-verified

158 * Overwrites all providers for the given token with the given provider definition.
159 */
160 overrideProvider(
161 token: any,
162 provider: {useFactory: Function; deps: any[]; multi?: boolean},
163 ): TestBed;

Implementers 1

TestBedImplpackages/core/testing/src/test_bed.ts

Calls

no outgoing calls

Tested by 1

guardsIntegrationSuiteFunction · 0.52