test: exclude qa Playwright specs and stale landing tests from vitest

A bare 'vitest run' (pnpm test:ci) collected tests/qa/*.qa.spec.ts (Playwright specs importing @playwright/test -> 'test.describe() called here') and tests/unit/landing/*.test.tsx (React tests importing @landing/app/* and @landing/components/* paths that no longer exist after the landing Next.js->Astro migration). Exclude both. Surfaced by the full pnpm test:docker run; the host unit suite is now green.
This commit is contained in:
SnapOtter
2026-06-17 14:28:41 +08:00
parent 37b9c6d7bf
commit b4470cac4b
+7
View File
@@ -51,6 +51,13 @@ export default defineConfig({
"tests/e2e-landing/**",
"tests/e2e-docker/**",
"tests/e2e-analytics/**",
// tests/qa/* are Playwright QA-sweep specs (and .mts harnesses), not
// vitest tests; they import @playwright/test and break a bare `vitest run`.
"tests/qa/**",
// Stale: the landing app migrated from Next.js to Astro, so these React
// unit tests import @landing/app/* and @landing/components/* modules that
// no longer exist (components are now .astro). Excluded until rewritten.
"tests/unit/landing/**",
"**/node_modules/**",
"**/dist/**",
"**/.{idea,git,cache,output,temp}/**",