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 |
(Optional) Additional options for the rendering. |
(props: { children: ReactNode; }) => JSX.Element