Services: Admin-Compliance, Backend-Compliance, AI-Compliance-SDK, Consent-SDK, Developer-Portal, PCA-Platform, DSMS Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
35 lines
786 B
TypeScript
35 lines
786 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./test-setup.ts'],
|
|
include: ['src/**/*.test.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
exclude: [
|
|
'node_modules/',
|
|
'dist/',
|
|
'**/*.d.ts',
|
|
'test-setup.ts',
|
|
'vitest.config.ts',
|
|
// Framework integrations require separate component testing
|
|
'src/react/**',
|
|
'src/vue/**',
|
|
'src/angular/**',
|
|
// Re-export index files
|
|
'src/index.ts',
|
|
'src/core/index.ts',
|
|
],
|
|
thresholds: {
|
|
statements: 80,
|
|
branches: 70,
|
|
functions: 80,
|
|
lines: 80,
|
|
},
|
|
},
|
|
},
|
|
});
|