diff --git a/superset-frontend/src/views/CRUD/data/query/QueryList.test.tsx b/superset-frontend/src/views/CRUD/data/query/QueryList.test.tsx
index be28d7e2df..ae7c78d6a8 100644
--- a/superset-frontend/src/views/CRUD/data/query/QueryList.test.tsx
+++ b/superset-frontend/src/views/CRUD/data/query/QueryList.test.tsx
@@ -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 }) => (
+
+ ),
+ StyledIcon: () => ,
+}));
+
// store needed for withToasts
const mockStore = configureStore([thunk]);
const store = mockStore({});