Quick wins implemented: - Add ESLint to common_plat (12 projects now linted) - Add test coverage with 80% thresholds - Add security audit for all dependencies - Add bundle analysis for Next.js builds - Update Makefile with audit target Enhanced coverage: - common_plat: +lint, +coverage, +security - dashboards: +coverage, +bundle analysis, +security - Python: +security audit via make target Workflow now validates 7 dimensions instead of 4.
30 lines
575 B
TypeScript
30 lines
575 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
passWithNoTests: true,
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
exclude: [
|
|
'node_modules/**',
|
|
'dist/**',
|
|
'coverage/**',
|
|
'**/*.test.ts',
|
|
'**/*.config.*',
|
|
'**/index.ts',
|
|
],
|
|
thresholds: {
|
|
global: {
|
|
branches: 80,
|
|
functions: 80,
|
|
lines: 80,
|
|
statements: 80,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|