Mock implementations of the core utility APIs, to be used in tests.
Each @backstage/frontend-plugin-api#coreApis member has a matching
.mock() helper. Some APIs also provide functional fake instances.
Remarks
Call .mock() to create an API whose methods are plain jest.fn() stubs
without default behavior. Supply partial implementations for methods used
by your test, then make assertions using Jest:
Mock implementations of the core utility APIs, to be used in tests. Each @backstage/frontend-plugin-api#coreApis member has a matching
.mock()helper. Some APIs also provide functional fake instances.Remarks
Call
.mock()to create an API whose methods are plainjest.fn()stubs without default behavior. Supply partial implementations for methods used by your test, then make assertions using Jest:Some APIs also provide functional fake instances, created by calling the helper directly. These maintain state or provide other useful behavior: