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

@@ -30,14 +30,6 @@ import { DndMetricSelect } from 'src/explore/components/controls/DndColumnSelect
import { AGGREGATES } from 'src/explore/constants';
import { EXPRESSION_TYPES } from '../MetricControl/AdhocMetric';
jest.mock('src/components/Icons/Icon', () => ({
__esModule: true,
default: ({ fileName }: { fileName: string }) => (
<span role="img" aria-label={fileName.replace('_', '-')} />
),
StyledIcon: () => <span />,
}));
const defaultProps = {
savedMetrics: [
{