bf7be65b03
Jenkins Production Deployment
Reviewed-on: #12 Co-authored-by: Patrick Müller <mail@pmueller.me> Co-committed-by: Patrick Müller <mail@pmueller.me>
29 lines
909 B
TypeScript
29 lines
909 B
TypeScript
import {defineConfig} from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['test/**/*.test.ts'],
|
|
// The integration suite needs a Docker MariaDB and runs separately via
|
|
// npm run test:integration (vitest.integration.config.ts).
|
|
exclude: ['test/integration/**'],
|
|
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']
|
|
}
|
|
}
|
|
});
|