Optionaloptions: {OptionalbaseImplementation?: Define the underlying base fetch implementation.
Leaving out this parameter or passing undefined, makes the API use the
global fetch implementation to make real network requests.
'none' swallows all calls and makes no requests at all.
You can also pass in any fetch compatible callback, such as a
jest.fn(), if you want to use a custom implementation or to just track
and assert on calls.
OptionalinjectIdentityAuth?: { token: string } | { identityApi: Pick<IdentityApi, "getCredentials"> }Add token based Authorization headers to requests, basically simulating what @backstage/core-app-api#FetchMiddlewares.injectIdentityAuth does.
OptionalresolvePluginProtocol?: { discoveryApi: Pick<DiscoveryApi, "getBaseUrl"> }Add translation from plugin:// URLs to concrete http(s) URLs, basically
simulating what
@backstage/core-app-api#FetchMiddlewares.resolvePluginProtocol
does.
Fake implementation of @backstage/core-plugin-api#FetchApi.