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