chore: fix playwright config + gitignore test-results
Deploy to route.crispygoat.com / deploy (push) Failing after 2m3s

- playwright.config.ts: add testMatch pattern so playwright only picks up
  *.spec.ts (skipping tests/unit/*.test.ts which are vitest's domain).
  Before this, 'npx playwright test' would fail trying to run vitest tests.
- .gitignore: exclude test-results/ and playwright-report/ (generated by
  'npx playwright test', not source files).
This commit is contained in:
2026-06-07 06:34:54 +00:00
parent e7de43e723
commit cbb9f23012
6 changed files with 8 additions and 464 deletions
+4
View File
@@ -10,6 +10,10 @@ export default defineConfig({
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 1,
// Playwright should only run E2E specs — vitest owns everything under
// tests/unit/. The glob below matches *.spec.ts at the top of tests/ and
// tests/e2e/ and tests/login/ but skips the .test.ts files (vitest).
testMatch: /(tests\/(smoke|e2e|login)\/.*|\/[^/]+\.spec\.ts$)/,
reporter: "list",
use: {
baseURL: LOCAL_BASE,