Recharts

Learn how to properly mock Recharts—a popular charting library for the browser.

Why do we mock Recharts?

The Recharts package is a wonderful library that makes it simple to create and render beautiful data charts to our clients. While this is an extremely useful tool to have, these types of client-side, render-focused libraries can cause issues in testing. Much of what makes them so easy ...