import {render, screen} from 'sentry-test/reactTestingLibrary'; import BaseChart from 'sentry/components/charts/baseChart'; import MarkLine from 'sentry/components/charts/components/markLine'; import type {Series} from 'sentry/types/echarts'; import Chart, {ChartType} from 'sentry/views/insights/common/components/chart'; jest.mock('sentry/components/charts/baseChart', () => { return jest.fn().mockImplementation(() =>
); }); jest.mock('react', () => { return { ...jest.requireActual('react'), useRef: jest.fn(), }; }); describe('Chart', function () { test('it shows an error panel if an error prop is supplied', function () { const parsingError = new Error('Could not parse chart data'); render(