Skip to main content

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

ParameterTypeDescription
optionsTestAppOptions(Optional) Additional options for the rendering.

Returns:

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