Module @backstage/frontend-test-utils
@backstage/frontend-test-utils
The new frontend system that this package is part of is in alpha, and we do not yet recommend using it for production deployments
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
Classes
- MockAnalyticsApi
- MockConfigApi
- MockErrorApi
- MockFetchApi
- MockPermissionApi
- MockStorageApi
- TestApiRegistry
Interfaces
- ExtensionQuery
- ExtensionTester
- MockFetchApiOptions
Type Aliases
- ApiMock
- ErrorWithContext
- MockErrorApiOptions
- MockStorageBucket
- RenderTestAppOptions
- TestApiProviderProps
- TestAppOptions
Functions
- createExtensionTester
- registerMswTestHooks
- renderInTestApp
- renderTestApp
- TestApiProvider
- withLogCollector
Contains utilities that can be used when testing frontend features such as extensions.