3👍
✅
Just mock out the chart component from react-chartjs-2
jest.mock('react-chartjs-2', () => 'Chart')
This will replace the original component with a dump one that will just render as <Chart prop="prop">
in your snapshot.
Source:stackexchange.com