container
By default, React Testing Library will create a div and append that div to the document.body. Your React component will be rendered in the created div. If you provide your own HTMLElement container via this option, it will not be appended to the document.body automatically.
For example: If you are unit testing a <tbody> element, it cannot be a child of a div. In this case, you can specify a table as the render container.
See also
https
://testing-library.com/docs/react-testing-library/api/#container