import {defineConfig} from 'vitest/config'; export default defineConfig({ test: { include: ['test/**/*.test.ts'], environment: 'node', // feedback.ratelimit throws at import time without a salt (see // test/feedback/ratelimit.salt-guard.test.ts). Set one here so the suite // passes on a clean checkout without a local .env; the salt-guard test // deletes it explicitly before exercising the missing-salt path. env: { FEEDBACK_IP_SALT: 'vitest-salt' }, reporters: [ 'default', ['vitest-sonar-reporter', {outputFile: 'testResults/sonar-report.xml'}] ], coverage: { provider: 'v8', reporter: ['text-summary', 'lcov'], reportsDirectory: 'coverage', include: ['app.ts', 'src/**/*.ts'] } } });