Initial Upload
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
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
This commit is contained in:
28
apps/server/vitest.security.config.ts
Normal file
28
apps/server/vitest.security.config.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* 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
|
||||
},
|
||||
})
|
||||
);
|
||||
Reference in New Issue
Block a user