mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
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
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 )
|