-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvitest.config.ts
More file actions
24 lines (23 loc) · 831 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
24 lines (23 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { playwright } from '@vitest/browser-playwright'
import { defineConfig } from 'vitest/config'
import { probeMp4WithFfmpeg } from './src/test/ffmpeg-command'
export default defineConfig({
// Pre-bundle everything the component tests pull in — a dependency
// discovered mid-run makes Vite reload the page and re-run tests.
optimizeDeps: {
include: ['remix/ui/jsx-dev-runtime'],
},
test: {
// Unit tests only — tests/e2e belongs to Playwright.
include: ['src/**/*.test.ts', 'functions/**/*.test.ts'],
browser: {
enabled: true,
headless: true,
provider: playwright(),
instances: [{ browser: 'chromium' }],
// Unit-style assertions — a page screenshot of a failure adds noise.
screenshotFailures: false,
commands: { probeMp4WithFfmpeg },
},
},
})