chore: Removes icon warnings from tests (#23054)

This commit is contained in:
Michael S. Molina
2023-02-13 12:31:09 -05:00
committed by GitHub
parent d3d59ee0ae
commit 49aa9b4ca8
21 changed files with 43 additions and 122 deletions

View File

@@ -27,25 +27,6 @@ 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;
}) => (
<span
role={role ?? 'img'}
aria-label={fileName.replace('_', '-')}
{...rest}
/>
),
StyledIcon: () => <span />,
}));
const createProps = (overrides: JsonObject = {}) => ({
hovered: false,
type: 'DatasourceControl',