mirror of
https://github.com/apache/superset.git
synced 2026-04-26 19:44:58 +00:00
feat(storybook): Co-habitating/Upgrading Storybooks to v7 (dependency madness ensues) (#26907)
This commit is contained in:
@@ -26,8 +26,9 @@ import { ErrorLevel } from './types';
|
||||
jest.mock(
|
||||
'src/components/Icons/Icon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) =>
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />,
|
||||
({ fileName }: { fileName: string }) => (
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />
|
||||
),
|
||||
);
|
||||
|
||||
const mockedProps = {
|
||||
|
||||
@@ -26,8 +26,9 @@ import { ErrorLevel, ErrorSource, ErrorTypeEnum } from './types';
|
||||
jest.mock(
|
||||
'src/components/Icons/Icon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) =>
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />,
|
||||
({ fileName }: { fileName: string }) => (
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />
|
||||
),
|
||||
);
|
||||
|
||||
const mockedProps = {
|
||||
|
||||
@@ -25,8 +25,9 @@ import { ErrorLevel, ErrorSource, ErrorTypeEnum } from './types';
|
||||
jest.mock(
|
||||
'src/components/Icons/Icon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) =>
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />,
|
||||
({ fileName }: { fileName: string }) => (
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />
|
||||
),
|
||||
);
|
||||
|
||||
const mockedProps = {
|
||||
|
||||
@@ -28,8 +28,9 @@ import { ErrorLevel, ErrorSource } from './types';
|
||||
jest.mock(
|
||||
'src/components/Icons/Icon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) =>
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />,
|
||||
({ fileName }: { fileName: string }) => (
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />
|
||||
),
|
||||
);
|
||||
|
||||
jest.mock('src/utils/isBot', () => ({
|
||||
|
||||
@@ -27,8 +27,9 @@ import { ErrorLevel, ErrorSource, ErrorTypeEnum } from './types';
|
||||
jest.mock(
|
||||
'src/components/Icons/Icon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) =>
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />,
|
||||
({ fileName }: { fileName: string }) => (
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />
|
||||
),
|
||||
);
|
||||
|
||||
const mockedProps = {
|
||||
|
||||
@@ -26,8 +26,9 @@ import { ErrorLevel, ErrorSource, ErrorTypeEnum } from './types';
|
||||
jest.mock(
|
||||
'src/components/Icons/Icon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) =>
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />,
|
||||
({ fileName }: { fileName: string }) => (
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />
|
||||
),
|
||||
);
|
||||
|
||||
const mockedProps = {
|
||||
|
||||
@@ -26,8 +26,9 @@ import { ErrorLevel, ErrorSource, ErrorTypeEnum } from './types';
|
||||
jest.mock(
|
||||
'src/components/Icons/Icon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) =>
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />,
|
||||
({ fileName }: { fileName: string }) => (
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />
|
||||
),
|
||||
);
|
||||
|
||||
const mockedProps = {
|
||||
|
||||
Reference in New Issue
Block a user