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