Files
kilo-cv/vitest.config.js
2026-02-20 17:25:15 +01:00

32 lines
802 B
JavaScript

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.js'],
include: ['src/**/*.{test,spec}.{js,jsx}', 'tests/**/*.{test,spec}.js'],
exclude: ['tests/e2e/**', 'tests/performance/**', 'tests/regression/visual.test.js', 'node_modules/**'],
snapshotFormat: {
escapeString: true,
printBasicPrototype: false,
},
coverage: {
provider: 'v8',
reporter: ['text', 'lcov', 'html'],
exclude: [
'node_modules/',
'tests/',
'**/*.test.js',
'**/*.config.js'
],
lines: 80,
functions: 80,
branches: 80,
statements: 80
},
},
})