MockFetchApiOptions
Home > @backstage/test-utils
> MockFetchApiOptions
The options given when constructing a MockFetchApi.
Signature:
export interface MockFetchApiOptions
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
undefined | 'none' | typeof crossFetch |
(Optional) Define the underlying base | ||
undefined | { token: string; } | { identityApi: Pick<IdentityApi, 'getCredentials'>; } |
(Optional) Add token based Authorization headers to requests, basically simulating what FetchMiddlewares.injectIdentityAuth() does. | ||
undefined | { discoveryApi: Pick<DiscoveryApi, 'getBaseUrl'>; } |
(Optional) Add translation from |