renderInTestApp()
Home > @backstage/frontend-test-utils
> renderInTestApp
Renders the given element in a test app, for use in unit tests.
Signature:
function renderInTestApp(element: JSX.Element, options?: TestAppOptions): RenderResult;
Parameters
Parameter |
Type |
Description |
---|---|---|
element |
JSX.Element | |
options |
(Optional) |
RenderResult