Skip to main content

@backstage/frontend-test-utils

Home > @backstage/frontend-test-utils

Contains utilities that can be used when testing frontend features such as extensions.

Classes

ClassDescription
ExtensionTester
MockAnalyticsApiMock implementation of AnalyticsApi with helpers to ensure that events are sent correctly. Use getEvents in tests to verify captured events.

Functions

FunctionDescription
createExtensionTester(subject, options)
renderInTestApp(element, options)Renders the given element in a test app, for use in unit tests.

Type Aliases

Type AliasDescription
TestAppOptionsOptions to customize the behavior of the test app.