Files
rustytorch/demos/ui/vitest.config.ts
T
2026-03-04 00:08:42 +00:00

31 lines
698 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'],
include: ['src/**/*.{test,spec}.{ts,tsx}'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/**/*.{ts,tsx}'],
exclude: [
'src/**/*.test.{ts,tsx}',
'src/**/*.spec.{ts,tsx}',
'src/test/**',
'src/main.tsx',
'src/vite-env.d.ts'
],
thresholds: {
lines: 80,
functions: 80,
branches: 70,
statements: 80
}
}
}
})