Backstage
    Preparing search index...
    • Renders a component inside a Backstage test app, providing a mocked theme and app context, along with mocked APIs.

      The render executes async effects similar to renderWithEffects. To avoid this behavior, use a regular render() + wrapInTestApp() instead.

      Parameters

      • Component: ReactNode | ComponentType<{ children?: ReactNode }>

        A component or react node to render inside the test app.

      • options: TestAppOptions & LegacyRootOption = {}

        Additional options for the rendering.

      Returns Promise<RenderResult>