React Testing Library · Pipe
unmount
React Testing Library mounts React elements for tests and returns queries plus helpers for updating, inspecting, and removing them. It also provides cleanup, hook rendering, and configuration functions.
Last updated
Syntax
render(ui: React.ReactElement<any>, options?: RenderOptions): RenderResultIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
renderHookcleanupactconfigurescreenrerenderunmountasFragment