test(search): add url-targetable pagefind browser regression

Cover the Native Support filter with a Playwright-backed Vitest case
that can boot the local dev server or attach to a deployed URL so the
same regression can gate post-deploy verification.
This commit is contained in:
ThatGuySam 2026-03-15 19:27:25 -05:00
parent a1ae595717
commit 3dcf7da638
4 changed files with 310 additions and 0 deletions

View file

@ -0,0 +1,23 @@
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'
],
exclude: [
'test/_disabled/**'
],
fileParallelism: false,
hookTimeout: 120 * 1000,
testTimeout: 120 * 1000
}
}
export default defineConfig( vitestConfig )