From 4970df0a6539a75497a1f5ee4e06db110c8c1980 Mon Sep 17 00:00:00 2001
From: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com>
Date: Fri, 3 Feb 2023 07:27:15 -0600
Subject: [PATCH] test: Clean up QueryList test warnings (#22972)
---
.../src/views/CRUD/data/query/QueryList.test.tsx | 8 ++++++++
1 file changed, 8 insertions(+)
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 be28d7e2d..ae7c78d6a 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({});