diff --git a/charts/core/src/Chart/hooks/useChart.spec.ts b/charts/core/src/Chart/hooks/useChart.spec.ts index 2ede70a6c9..2a211bc9d5 100644 --- a/charts/core/src/Chart/hooks/useChart.spec.ts +++ b/charts/core/src/Chart/hooks/useChart.spec.ts @@ -6,7 +6,7 @@ import { SeriesOption } from '../Chart.types'; import { useChart } from './useChart'; -jest.mock('echarts/core', () => ({ +jest.mock('echarts', () => ({ init: jest.fn(() => ({ setOption: jest.fn(), dispose: jest.fn(), @@ -16,22 +16,6 @@ jest.mock('echarts/core', () => ({ use: jest.fn(), })); -jest.mock('echarts/charts', () => ({ - LineChart: jest.fn(), -})); - -jest.mock('echarts/components', () => ({ - TitleComponent: jest.fn(), - TooltipComponent: jest.fn(), - GridComponent: jest.fn(), - LegendComponent: jest.fn(), - ToolboxComponent: jest.fn(), -})); - -jest.mock('echarts/renderers', () => ({ - CanvasRenderer: jest.fn(), -})); - describe('@lg-echarts/core/hooks/useChart', () => { test('should return an object with the correct properties', () => { const { result } = renderHook(() => useChart({ theme: 'dark' }));