Custom rendering in React Testing Library Done Right
This post is also available in my personal site:
Browsing multiple projects, I encountered a recurring pattern when trying to write a custom render for components that use Providers (React-Redux’s
IntlProvider for example).
This pattern usually looks like this: