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