Files
opencode-manager/backend/vitest.config.ts
T
CS d5342ecd91 feat: add workspace plugin for OpenCode TUI integration
- Add @opencode-manager/workspace-plugin package
- Add API tokens management with scoped access control
- Add workspace-plugin routes for project discovery
- Add bearer token authentication for external access
- Add proxy WebSocket support for remote workspaces
- Add frontend UI for API token management
- Update documentation with workspace plugin guide
2026-04-20 18:31:22 -04:00

25 lines
602 B
TypeScript

import { defineConfig } from 'vitest/config'
import { fileURLToPath } from 'node:url'
export default defineConfig({
test: {
globals: true,
environment: 'node',
setupFiles: ['./test/setup.ts'],
alias: {
'bun:sqlite': fileURLToPath(new URL('./test/helpers/bun-sqlite-shim.ts', import.meta.url)),
},
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',
},
},
})