Renders the given element in a test app, for use in unit tests.
Elements that do not suspend render immediately. If a descendant suspends,
the entire element renders nothing until it is ready; use asynchronous queries
such as findByText to await it. Supply an inner Suspense boundary to isolate
suspended content or provide a custom fallback. Rendering errors are not caught
by the Suspense boundary.
Navigation is owned by a @backstage/frontend-plugin-api#AppHistoryApi
with in-memory history, the same seam as production. Access it through
apis.get(coreApis.appHistory) on the render result.
The element renders under the app's root React Router v6 projection, as in
production. Wrap the element in its page's adapter when it needs routing-library
context. Page matching and navigation use the framework routing APIs.
App-wide elements such as sidebars can use renderAs: 'chrome' to render on
the app root's elements input.
Renders the given element in a test app, for use in unit tests.
Elements that do not suspend render immediately. If a descendant suspends, the entire element renders nothing until it is ready; use asynchronous queries such as
findByTextto await it. Supply an inner Suspense boundary to isolate suspended content or provide a custom fallback. Rendering errors are not caught by the Suspense boundary.Navigation is owned by a @backstage/frontend-plugin-api#AppHistoryApi with in-memory history, the same seam as production. Access it through
apis.get(coreApis.appHistory)on the render result.The element renders under the app's root React Router v6 projection, as in production. Wrap the element in its page's adapter when it needs routing-library context. Page matching and navigation use the framework routing APIs. App-wide elements such as sidebars can use
renderAs: 'chrome'to render on the app root's elements input.