mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
test: Clean up QueryList test warnings (#22972)
This commit is contained in:
parent
39f15b8d95
commit
4970df0a65
@ -35,6 +35,14 @@ import SyntaxHighlighter from 'react-syntax-highlighter/dist/cjs/light';
|
|||||||
import SubMenu from 'src/views/components/SubMenu';
|
import SubMenu from 'src/views/components/SubMenu';
|
||||||
import { QueryState } from '@superset-ui/core';
|
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
|
// store needed for withToasts
|
||||||
const mockStore = configureStore([thunk]);
|
const mockStore = configureStore([thunk]);
|
||||||
const store = mockStore({});
|
const store = mockStore({});
|
||||||
|
Loading…
Reference in New Issue
Block a user