diff --git a/public/components/core_visualization.test.tsx b/public/components/core_visualization.test.tsx index e6831c42..f0663d73 100644 --- a/public/components/core_visualization.test.tsx +++ b/public/components/core_visualization.test.tsx @@ -9,6 +9,10 @@ import { render, screen, fireEvent, waitFor } from '@testing-library/react'; import * as coreContextExports from '../contexts/core_context'; import { CoreVisualization } from './core_visualization'; +jest.mock('../../../../src/plugins/embeddable/public', () => ({ + ViewMode: jest.requireActual('../../../../src/plugins/embeddable/public/lib').ViewMode, +})); + describe('', () => { beforeEach(() => { jest.spyOn(coreContextExports, 'useCore').mockReturnValue({