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