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