Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

vitest.config.ts

26 lines675 Bytes

1import { defineConfig } from 'vitest/config'
2import preact from '@preact/preset-vite'
3import { playwright } from '@vitest/browser-playwright'
4import packageJson from './package.json' with { type: 'json' }
5​
6export default defineConfig({
7 plugins: [preact()],
8 test: {
9 name: packageJson.name,
10 dir: './tests',
11 watch: false,
12 globals: true,
13 browser: {
14 enabled: true,
15 provider: playwright(
16 process.env.CI ? { launchOptions: { channel: 'chrome' } } : {},
17 ),
18 instances: [{ browser: 'chromium', headless: true }],
19 },
20 coverage: {
21 enabled: true,
22 provider: 'istanbul',
23 include: ['src/**/*'],
24 },
25 },
26})