ci: keep the a11y guard out of lint and vitest and mock narrowerThan in attachment tests

This commit is contained in:
Linus Rath
2026-10-29 21:08:59 +01:00
parent c0fb427eec
commit ed988a2aae
4 changed files with 4 additions and 1 deletions
@@ -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() }),
@@ -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 () => {
+1
View File
@@ -89,6 +89,7 @@ export default [
"benchmark/**",
"examples/**",
"integration/**",
"scripts/a11y-guard/axe.min.js",
],
},
];
+1 -1
View File
@@ -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: {