Module @backstage/frontend-test-utils
@backstage/frontend-test-utils
Part of the new frontend system.
Contains utilities that can be used when testing frontend features such as extensions.
Installation
Install the package via Yarn into your own packages:
cd <package-dir> # if within a monorepo
yarn add --dev @backstage/frontend-test-utils
Namespaces
- mockApis
Interfaces
- ExtensionQuery
- ExtensionSnapshotNode
- ExtensionTester
Type Aliases
- ApiMock
- MockApiFactorySymbol
- MockWithApiFactory
- RenderTestAppOptions
- TestApiPair
- TestApiPairs
- TestApiProviderProps
- TestAppOptions
- TestAppRenderResult
Functions
- attachMockApiFactory
- createApiMock
- createExtensionTester
- registerMswTestHooks
- renderInTestApp
- renderTestApp
- TestApiProvider
- withLogCollector
Contains utilities that can be used when testing frontend features such as extensions.