Scaffold Svelte frontend and browser test matrix
Establish the TypeScript 7, Oxlint, Vitest, and Playwright workspace with an isolated Svelte diagnostics compatibility boundary.
This commit is contained in:
parent
66991b85b2
commit
9156b75c62
1 changed files with 2545 additions and 0 deletions
18
web/vitest.browser.config.ts
Normal file
18
web/vitest.browser.config.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
import { playwright } from '@vitest/browser-playwright'
|
||||
import { defineProject } from 'vitest/config'
|
||||
|
||||
export default defineProject({
|
||||
plugins: [svelte()],
|
||||
test: {
|
||||
name: 'component',
|
||||
include: ['src/**/*.browser.test.ts'],
|
||||
setupFiles: ['vitest-browser-svelte'],
|
||||
browser: {
|
||||
enabled: true,
|
||||
headless: true,
|
||||
provider: playwright(),
|
||||
instances: [{ browser: 'chromium' }],
|
||||
},
|
||||
},
|
||||
})
|
||||
Loading…
Reference in a new issue