Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external interface RenderHookOptions<Props, Container, BaseElement> : RenderOptions<Container, BaseElement>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
external fun render(ui: ReactNode, options: RenderOptions<*, *>? = definedExternally): RenderResult<*, *>
external fun <Container, BaseElement> render(ui: ReactNode, options: RenderOptions<Container, BaseElement>): RenderResult<Container, BaseElement>
Render into a container which is appended to document.body. It should be used with cleanup.
Link copied to clipboard
external fun <Result, Props, Container, BaseElement> renderHook(render: (initialProps: Props) -> Result, options: RenderHookOptions<Props, Container, BaseElement>? = definedExternally): RenderHookResult<Result, Props>
Allows you to render a hook within a test React component without having to create that component yourself.