18 lines
447 B
TypeScript
18 lines
447 B
TypeScript
|
|
import { defineConfig } from 'vitest/config'
|
||
|
|
import react from '@vitejs/plugin-react'
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react()],
|
||
|
|
test: {
|
||
|
|
environment: 'jsdom',
|
||
|
|
globals: true,
|
||
|
|
setupFiles: ['./src/test-setup.ts'],
|
||
|
|
exclude: ['e2e/**', 'node_modules/**'],
|
||
|
|
coverage: {
|
||
|
|
provider: 'v8',
|
||
|
|
include: ['src/**/*.{ts,tsx}'],
|
||
|
|
exclude: ['src/**/__tests__/**', 'src/test-setup.ts', 'src/main.tsx'],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
})
|