10-layer defense pipeline with kill chain mapping, self-healing, self-learning, and compliance reporting. Local-first, zero cloud deps. - 72 detection rules across 7 kill chain phases - 294 unit tests, 500+ attack corpus samples - Management dashboard (Next.js 15, 10 pages) - Automated resistance testing (2x daily, 31 probes) - MITRE ATLAS, OWASP LLM Top 10, EU AI Act compliance - Integrations: Next.js middleware, Ollama, n8n - PostgreSQL 17 + pgvector for persistent learning
31 lines
655 B
TypeScript
31 lines
655 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
thresholds: {
|
|
global: {
|
|
branches: 80,
|
|
functions: 80,
|
|
lines: 80,
|
|
statements: 80,
|
|
},
|
|
},
|
|
include: ['src/**/*.ts'],
|
|
exclude: ['src/types/**', 'src/index.ts', 'src/**/index.ts'],
|
|
},
|
|
include: ['tests/**/*.test.ts'],
|
|
testTimeout: 30_000,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@shieldx': resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
})
|