mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
- 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
25 lines
602 B
TypeScript
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',
|
|
},
|
|
},
|
|
})
|