import React from 'react'; import { colors, dimensions, rawData } from 'eazychart-core/src/sample-data'; import { act, render, RenderResult, waitFor } from '@testing-library/react'; import { IrregularPieChart } from '@/recipes/pie/IrregularPieChart'; import 'tests/mocks/ResizeObserver'; describe('IrregularPieChart', () => { it('renders a irregular pie chart', async () => { let wrapper: RenderResult; act(() => { wrapper = render( ); }); await waitFor(() => { expect(wrapper.container.innerHTML).toMatchSnapshot(); }); }); });