Files
Tracearr/apps/server/vitest.security.config.ts
Rephl3x 3015f48118
Some checks failed
CI / Lint & Typecheck (push) Has been cancelled
CI / Test (routes) (push) Has been cancelled
CI / Test (security) (push) Has been cancelled
CI / Test (services) (push) Has been cancelled
CI / Test (unit) (push) Has been cancelled
CI / Test (integration) (push) Has been cancelled
CI / Test Coverage (push) Has been cancelled
CI / Build (push) Has been cancelled
Initial Upload
2025-12-17 12:32:50 +13:00

29 lines
741 B
TypeScript

/**
* Security Tests Configuration
*
* Authentication and authorization tests:
* - Token validation and bypass attempts
* - Privilege escalation prevention
* - Injection attack prevention
* - Role-based access control
*
* These tests verify security behavior, not implementation coverage.
* No coverage thresholds - security tests are pass/fail.
*
* Run: pnpm test:security
*/
import { defineConfig, mergeConfig } from 'vitest/config';
import { sharedConfig } from './vitest.shared.js';
export default mergeConfig(
sharedConfig,
defineConfig({
test: {
name: 'security',
include: ['src/**/*.security.test.ts'],
// No coverage for security tests - they test behavior, not implementation
},
})
);