Skip to main content
Version: Next

@backstage/frontend-test-utils

Home > @backstage/frontend-test-utils

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

Classes

Class

Description

ExtensionQuery

ExtensionTester

MockAnalyticsApi

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

Functions

Function

Description

createExtensionTester(subject, options)

renderInTestApp(element, options)

Renders the given element in a test app, for use in unit tests.

setupRequestMockHandlers(worker)

Type Aliases

Type Alias

Description

TestAppOptions

Options to customize the behavior of the test app.