diff --git a/components/email/__tests__/download-all-attachments.test.tsx b/components/email/__tests__/download-all-attachments.test.tsx index df88e19fc..1eaf7d825 100644 --- a/components/email/__tests__/download-all-attachments.test.tsx +++ b/components/email/__tests__/download-all-attachments.test.tsx @@ -18,6 +18,7 @@ vi.mock('@/hooks/use-media-query', () => ({ useDeviceDetection: () => ({ isMobile: false, isTablet: false, isDesktop: true }), useMediaQuery: () => false, useIsDesktop: () => true, + narrowerThan: (px: number) => `(width < ${px / 16}rem)`, })); vi.mock('@/components/tour/tour-provider', () => ({ useTour: () => ({ activeTour: null, registerStep: vi.fn() }), diff --git a/components/mail/__tests__/blob-routing.test.tsx b/components/mail/__tests__/blob-routing.test.tsx index f54b88a07..d1c2d69e0 100644 --- a/components/mail/__tests__/blob-routing.test.tsx +++ b/components/mail/__tests__/blob-routing.test.tsx @@ -51,6 +51,7 @@ vi.mock('@/hooks/use-media-query', () => ({ useDeviceDetection: () => ({ isMobile: device.mobile, isTablet: false, isDesktop: !device.mobile }), useMediaQuery: () => false, useIsDesktop: () => true, + narrowerThan: (px: number) => `(width < ${px / 16}rem)`, })); vi.mock('@/lib/push-bindings', () => ({ reconcilePushBindings: () => {}, releasePushBindings: () => {} })); vi.mock('@/components/email/email-list', async () => { diff --git a/eslint.config.mjs b/eslint.config.mjs index bc2093315..0723a5eb2 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -89,6 +89,7 @@ export default [ "benchmark/**", "examples/**", "integration/**", + "scripts/a11y-guard/axe.min.js", ], }, ]; diff --git a/vitest.config.ts b/vitest.config.ts index f1d2bfb89..95a484920 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -14,7 +14,7 @@ export default defineConfig({ // must be globbed at any depth or the nested repos/*/node_modules trees // get collected too. // scripts/lite/smoke/** is the Playwright smoke for the static Lite export. - exclude: ['integration/**', 'examples/**', 'repos/**', '**/node_modules/**', '.next/**', 'out/**', 'scripts/lite/smoke/**', 'scripts/perf-guard/**'], + exclude: ['integration/**', 'examples/**', 'repos/**', '**/node_modules/**', '.next/**', 'out/**', 'scripts/lite/smoke/**', 'scripts/perf-guard/**', 'scripts/a11y-guard/**'], }, resolve: { alias: {