cms.c2sgmbh/vitest.config.mts
Martin Porwoll 6ccb50c5f4 docs: consolidate and update documentation
- Remove obsolete instruction documents (PROMPT_*.md, SECURITY_FIXES.md)
- Update CLAUDE.md with security features, test suite, audit logs
- Merge Techstack_Dokumentation into INFRASTRUCTURE.md
- Update SECURITY.md with custom login route documentation
- Add changelog to TODO.md
- Update email service and data masking for SMTP error handling
- Extend test coverage for CSRF and data masking

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 09:25:00 +00:00

37 lines
939 B
TypeScript

import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [tsconfigPaths(), react()],
test: {
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
include: [
'tests/int/**/*.int.spec.ts',
'tests/unit/**/*.unit.spec.ts',
],
coverage: {
provider: 'v8',
reporter: ['text', 'text-summary', 'html', 'lcov'],
reportsDirectory: './coverage',
include: [
'src/lib/**/*.ts',
'src/hooks/**/*.ts',
'src/app/**/api/**/route.ts',
],
exclude: [
'src/**/*.d.ts',
'src/**/payload-types.ts',
'node_modules/**',
],
// Initial thresholds - increase as test coverage improves
thresholds: {
lines: 35,
functions: 50,
branches: 65,
statements: 35,
},
},
},
})