mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-30 16:16:19 +00:00
ci: keep the a11y guard out of lint and vitest and mock narrowerThan in attachment tests
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
@@ -89,6 +89,7 @@ export default [
|
||||
"benchmark/**",
|
||||
"examples/**",
|
||||
"integration/**",
|
||||
"scripts/a11y-guard/axe.min.js",
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
+1
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user