import { render } from '@testing-library/react'; import { Chart } from '../Chart/Chart'; import { ChartGroup } from '../ChartGroup/ChartGroup'; import { ChartLine } from '../ChartLine/ChartLine'; import { ChartLabel } from '../ChartLabel/ChartLabel'; import { ChartAxis } from './ChartAxis'; Object.values([true, false]).forEach(() => { test('ChartAxis', () => { const { asFragment } = render(} />); expect(asFragment()).toMatchSnapshot(); }); }); test('renders component data', () => { const { asFragment } = render( } /> } /> ); expect(asFragment()).toMatchSnapshot(); });