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