Skip to content

Commit

Permalink
feat: fix ci (#246)
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe authored Jul 31, 2024
1 parent 913c47b commit d94b896
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/components/core_visualization.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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('<CoreVisualization />', () => {
beforeEach(() => {
jest.spyOn(coreContextExports, 'useCore').mockReturnValue({
Expand Down

0 comments on commit d94b896

Please sign in to comment.