From b4470cac4be018c0fe0f8524845d53acf98bd4d9 Mon Sep 17 00:00:00 2001 From: SnapOtter Date: Tue, 16 Jun 2026 15:16:40 +0800 Subject: [PATCH] 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. --- vitest.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index ea614402..06550b0e 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -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}/**",