From 0c06bf805ca999c9063d52fd94e7f81150629437 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" Date: Thu, 8 Sep 2022 18:08:44 -0300 Subject: [PATCH] test: Fixes act errors in ErrorAlert test --- .../src/components/ErrorMessage/ErrorAlert.test.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/superset-frontend/src/components/ErrorMessage/ErrorAlert.test.tsx b/superset-frontend/src/components/ErrorMessage/ErrorAlert.test.tsx index d9fdf5efc8f71..38006c2ec409e 100644 --- a/superset-frontend/src/components/ErrorMessage/ErrorAlert.test.tsx +++ b/superset-frontend/src/components/ErrorMessage/ErrorAlert.test.tsx @@ -24,6 +24,13 @@ import { supersetTheme } from '@superset-ui/core'; import ErrorAlert from './ErrorAlert'; import { ErrorLevel, ErrorSource } from './types'; +jest.mock( + 'src/components/Icons/Icon', + () => + ({ fileName }: { fileName: string }) => + , +); + const mockedProps = { body: 'Error body', level: 'warning' as ErrorLevel,