mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
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:
parent
a1ae595717
commit
3dcf7da638
4 changed files with 310 additions and 0 deletions
23
vitest.playwright.config.mjs
Normal file
23
vitest.playwright.config.mjs
Normal 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 )
|
||||
Loading…
Add table
Add a link
Reference in a new issue