diff --git a/code/addons/a11y/src/preview.tsx b/code/addons/a11y/src/preview.tsx index 61b292f2bc0..9b8a7598d6d 100644 --- a/code/addons/a11y/src/preview.tsx +++ b/code/addons/a11y/src/preview.tsx @@ -58,6 +58,7 @@ export const experimental_afterEach: AfterEach = async ({ if (getIsVitestStandaloneRun()) { if (hasViolations && getMode() === 'failed') { if (!vitestMatchersExtended) { + // @ts-expect-error (unknown why vitest-axe is not typed correctly) const { toHaveNoViolations } = await import('vitest-axe/matchers'); expect.extend({ toHaveNoViolations }); vitestMatchersExtended = true;