fix(ci): format ErrorMessage tests (#43114)

This commit is contained in:
Joe Li
2026-08-13 13:19:08 -07:00
committed by GitHub
parent 3fb58900b9
commit 930ba64fdf
7 changed files with 35 additions and 28 deletions
@@ -25,10 +25,11 @@ import { BasicErrorAlert } from './BasicErrorAlert';
jest.mock(
'@superset-ui/core/components/Icons/AsyncIcon',
() =>
({ fileName }: { fileName: string }) => (
// eslint-disable-next-line jsx-a11y/prefer-tag-over-role -- mirrors AsyncIcon's real span+role="img" shape
<span role="img" aria-label={fileName.replace('_', '-')} />
),
({ fileName }: { fileName: string }) =>
(
// eslint-disable-next-line jsx-a11y/prefer-tag-over-role -- mirrors AsyncIcon's real span+role="img" shape
<span role="img" aria-label={fileName.replace('_', '-')} />
),
);
const mockedProps = {