Skip to content

Commit

Permalink
test: Clean up QueryList test warnings (#22972)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Feb 3, 2023
1 parent 39f15b8 commit 4970df0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ import SyntaxHighlighter from 'react-syntax-highlighter/dist/cjs/light';
import SubMenu from 'src/views/components/SubMenu';
import { QueryState } from '@superset-ui/core';

jest.mock('src/components/Icons/Icon', () => ({
__esModule: true,
default: ({ fileName, role }: { fileName: string; role: string }) => (
<span role={role ?? 'img'} aria-label={fileName.replace('_', '-')} />
),
StyledIcon: () => <span />,
}));

// store needed for withToasts
const mockStore = configureStore([thunk]);
const store = mockStore({});
Expand Down

0 comments on commit 4970df0

Please sign in to comment.