mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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}/**",
|
||||
|
||||
Reference in New Issue
Block a user