import React from 'react'; import { act, RenderResult, waitFor } from '@testing-library/react'; import { dimensions, verticalLinearScaleDef, colors, rawData, } from 'eazychart-core/src/sample-data'; import { IrregularArcs } from '@/components/IrregularArcs'; import { Chart } from '@/components/Chart'; import { baseChartProps, renderSVG } from 'tests/common'; import 'tests/mocks/ResizeObserver'; import { LinearScale } from '@/components/scales/LinearScale'; import { ColorScale } from '@/components/scales/ColorScale'; describe('IrregularArcs', () => { it('renders svg irregular arcs with the right coordinates / dimensions', async () => { let wrapper: RenderResult; act(() => { wrapper = renderSVG( <>{null}, TooltipComponent: () => <>{null}, }} > ); }); await waitFor(() => { expect(wrapper.container.innerHTML).toMatchSnapshot(); }); }); });