captains-log/frontend/vitest.config.ts
Drew Galbraith 7d2b7fc90c Create directory structure for frontend with requisite justfile changes. (#6)
Reviewed-on: #6
Co-authored-by: Drew Galbraith <drew@tiramisu.one>
Co-committed-by: Drew Galbraith <drew@tiramisu.one>
2025-09-22 08:58:25 +00:00

39 lines
No EOL
873 B
TypeScript

import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
environment: 'jsdom',
setupFiles: ['./test-setup.ts'],
globals: true,
css: true,
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'test-setup.ts',
'**/*.d.ts',
'build/',
'.react-router/',
],
thresholds: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
},
include: ['app/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: [
'node_modules/',
'build/',
'.react-router/',
'public/',
],
},
})