19 lines
513 B
TypeScript
19 lines
513 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
include: ['src/**/__tests__/**/*.{test,spec}.{ts,tsx}'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'lcov'],
|
|
include: ['src/**/*.{ts,tsx}'],
|
|
exclude: ['src/**/__tests__/**', 'src/main.tsx', 'src/data/mock.ts'],
|
|
},
|
|
},
|
|
})
|