You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ly...@apache.org on 2023/02/03 00:07:19 UTC
[superset] branch lyndsi/fix-QueryList-test-warnings created (now 47a91caaf6)
This is an automated email from the ASF dual-hosted git repository.
lyndsi pushed a change to branch lyndsi/fix-QueryList-test-warnings
in repository https://gitbox.apache.org/repos/asf/superset.git
at 47a91caaf6 Fix 9 act errors in QueryList test
This branch includes the following new commits:
new 47a91caaf6 Fix 9 act errors in QueryList test
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[superset] 01/01: Fix 9 act errors in QueryList test
Posted by ly...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lyndsi pushed a commit to branch lyndsi/fix-QueryList-test-warnings
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 47a91caaf6d7186e14cbcc780fda99f63af84e6c
Author: lyndsiWilliams <kc...@gmail.com>
AuthorDate: Thu Feb 2 18:07:02 2023 -0600
Fix 9 act errors in QueryList test
---
superset-frontend/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 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 }) => (
+ <span role={role ?? 'img'} aria-label={fileName.replace('_', '-')} />
+ ),
+ StyledIcon: () => <span />,
+}));
+
// store needed for withToasts
const mockStore = configureStore([thunk]);
const store = mockStore({});