From ddd5cd3aec07f735bf9f44bdd89c58ab5784b16b Mon Sep 17 00:00:00 2001
From: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com>
Date: Wed, 25 Jan 2023 07:36:05 -0600
Subject: [PATCH] test: Fix act errors in DatasourceControl test (#22845)
---
.../DatasourceControl.test.tsx | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/superset-frontend/src/explore/components/controls/DatasourceControl/DatasourceControl.test.tsx b/superset-frontend/src/explore/components/controls/DatasourceControl/DatasourceControl.test.tsx
index 2c094e72af..9e32c30051 100644
--- a/superset-frontend/src/explore/components/controls/DatasourceControl/DatasourceControl.test.tsx
+++ b/superset-frontend/src/explore/components/controls/DatasourceControl/DatasourceControl.test.tsx
@@ -27,6 +27,25 @@ import DatasourceControl from '.';
const SupersetClientGet = jest.spyOn(SupersetClient, 'get');
+jest.mock('src/components/Icons/Icon', () => ({
+ __esModule: true,
+ default: ({
+ fileName,
+ role,
+ ...rest
+ }: {
+ fileName: string;
+ role: string;
+ }) => (
+
+ ),
+ StyledIcon: () => ,
+}));
+
const createProps = (overrides: JsonObject = {}) => ({
hovered: false,
type: 'DatasourceControl',