30 lines
651 B
TypeScript
30 lines
651 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./tests/setup.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'lcov'],
|
|
thresholds: {
|
|
lines: 90,
|
|
functions: 90,
|
|
branches: 90,
|
|
statements: 90,
|
|
},
|
|
include: ['src/**/*.{ts,tsx}'],
|
|
exclude: ['src/main.tsx', 'src/vite-env.d.ts', 'src/pages/**'],
|
|
},
|
|
},
|
|
})
|