This is an automated email from the ASF dual-hosted git repository.

lyndsi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 71459a6125 test: Fixes act errors in Toast test (#21393)
71459a6125 is described below

commit 71459a61259e14a770319879f7b2343b9f468300
Author: Michael S. Molina <[email protected]>
AuthorDate: Thu Sep 8 23:34:54 2022 -0300

    test: Fixes act errors in Toast test (#21393)
---
 superset-frontend/src/components/MessageToasts/Toast.test.jsx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/superset-frontend/src/components/MessageToasts/Toast.test.jsx 
b/superset-frontend/src/components/MessageToasts/Toast.test.jsx
index f0280c4851..2254ffb00a 100644
--- a/superset-frontend/src/components/MessageToasts/Toast.test.jsx
+++ b/superset-frontend/src/components/MessageToasts/Toast.test.jsx
@@ -23,6 +23,8 @@ import Toast from 'src/components/MessageToasts/Toast';
 import { act } from 'react-dom/test-utils';
 import mockMessageToasts from './mockMessageToasts';
 
+jest.mock('src/components/Icons/Icon', () => () => <span />);
+
 const props = {
   toast: mockMessageToasts[0],
   onCloseToast() {},

Reply via email to