chore: fix playwright config + gitignore test-results
Deploy to route.crispygoat.com / deploy (push) Failing after 2m3s
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user