React Testing Library · Pipe
baseElement
In React Testing Library, baseElement is the DOM root used by queries returned from render. It defaults to document.body, or to the supplied container when container is provided.
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
rendercontainerbaseElementqueriesrerenderunmountasFragment