Files
opencode-manager/backend/vitest.config.ts
T

21 lines
443 B
TypeScript

import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node',
setupFiles: ['./test/setup.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'html'],
},
env: {
NODE_ENV: 'test',
PORT: '3001',
DATABASE_PATH: ':memory:',
AUTH_SECRET: 'test-secret-for-encryption',
WORKSPACE_PATH: '/tmp/test-workspace',
},
},
})