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