Skip to main content
Version: Next

createTestAppWrapper()

Home > @backstage/test-utils > createTestAppWrapper

Creates a Wrapper component that wraps a component inside a Backstage test app, providing a mocked theme and app context, along with mocked APIs.

Signature:

function createTestAppWrapper(options?: TestAppOptions): (props: {
children: ReactNode;
}) => JSX.Element;

Parameters

Parameter

Type

Description

options

TestAppOptions

(Optional) Additional options for the rendering.

**Returns:**

(props: { children: ReactNode; }) => JSX.Element