doesitarm/vitest.playwright.config.mjs
ThatGuySam e638bdfa74 test(playwright): cover browser flows with typed harness
Lock the Apple Silicon upload flow behind a real browser regression and migrate the Pagefind browser regression onto a shared typed harness. This keeps the branch non-runtime and repairs the targeted pagefind script alias after moving the browser test to TypeScript.

Constraint: Must avoid runtime code changes on this branch
Rejected: Ship the app-test coverage without fixing script aliases | leaves a broken targeted check in package.json
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep browser-only support helpers under test/playwright/support until runtime code is typed separately
Tested: pnpm run typecheck; pnpm run test:browser; pnpm run test:browser:pagefind
Not-tested: pnpm run test:browser:pagefind:live
2026-04-04 13:05:03 -05:00

24 lines
561 B
JavaScript

import { defineConfig } from 'vitest/config'
import astroConfig from './astro.config.mjs'
const vitestConfig = {
...astroConfig,
...astroConfig.vite,
test: {
setupFiles: 'tsconfig-paths/register',
include: [
'test/playwright/**/*.playwright.js',
'test/playwright/**/*.playwright.ts'
],
exclude: [
'test/_disabled/**'
],
fileParallelism: false,
hookTimeout: 120 * 1000,
testTimeout: 120 * 1000
}
}
export default defineConfig( vitestConfig )