React Testing Library · Matcher
toHaveAttribute
React Testing Library needs no configuration to use. A custom render utility can add shared providers and reduce repeated test setup.
Last updated
Syntax
render(ui, { wrapper })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
global test configcustom renderwrapper optionsetup and teardownglobal context providersdata stores