OptionalbaseDefine the underlying base fetch implementation.
Optionalinit: RequestInitOptionalinit: RequestInitLeaving 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.
OptionalinjectAdd token based Authorization headers to requests, basically simulating what @backstage/core-app-api#FetchMiddlewares.injectIdentityAuth does.
OptionalresolveAdd translation from plugin:// URLs to concrete http(s) URLs, basically
simulating what
@backstage/core-app-api#FetchMiddlewares.resolvePluginProtocol
does.
The options given when constructing a MockFetchApi.