Files
miracles_in_motion/vitest.config.ts
T
defiQUGandCursor d00ab4cbaf Fix test suite teardown and gate CI on tests plus header WCAG audit.
Repair Navigation and HeroSection assertions, stop deleting window.location in jsdom setup, and add validate/a11y-live GitHub workflows with type-check and test:ci scripts.

Co-authored-by: Cursor <[email protected]>
2026-06-15 19:29:33 -07:00

42 lines
874 B
TypeScript

/// <reference types="vitest" />
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./src/test/setup.ts'],
css: true,
environmentOptions: {
jsdom: {
url: 'http://localhost:3000/#/',
},
},
coverage: {
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'src/test/',
'**/*.d.ts',
'**/*.config.ts',
'dist/'
],
thresholds: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
}
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
})