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