mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add a typed Playwright harness for Pagefind and the Apple Silicon app-test flow so scanner work has browser-level protection. Keep the rollout plan in the same stack so the TypeScript conversion stays staged and reviewable. Constraint: Must not change production runtime behavior in this commit Rejected: Leave the old JS browser test and add a second harness | duplicates setup and leaves the targeted browser script broken Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep browser-only helpers under test/playwright/support until the runtime scanner surface is fully typed Tested: pnpm run typecheck; pnpm run test:browser; pnpm run test:browser:pagefind Not-tested: Live browser checks against doesitarm.com
24 lines
561 B
JavaScript
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 )
|