Files
opencode-manager/backend/vitest.config.ts
T
Chris Scott b9236f7f20 feat(worktree): worktree tabs, server env vars, and multi-directory SSE (#240)
* loop: worktree-tabs-2 completed after 4 iterations

* loop: server-env-vars completed after 7 iterations

* feat(worktree): add worktree tabs and server env vars settings

* refactor(worktree): multi-directory SSE support and workspace chip row

* feat(workspace): collapsible workspace manager and sibling filtering

* feat(workspace): workspace creation endpoint, refactored workspace manager, and tests

* refactor(frontend): unify workspace label and remove dead code

- extract shared workspaceLabel helper into api/repos and reuse in
  WorkspaceManager and RepoDetail directoryLabels
- remove unused useSessions hook and subscribeToDirectory subscription
- drop redundant frontend workspace dedup now guaranteed by backend
- align WorktreeTabs empty-state test with create-workspace button
2026-05-30 19:44:07 -04:00

42 lines
1.1 KiB
TypeScript

import { defineConfig } from 'vitest/config'
import path from 'path'
export default defineConfig({
test: {
globals: true,
environment: 'node',
setupFiles: ['./test/setup.ts'],
include: ['test/**/*.{test,spec}.{ts,tsx}', 'src/**/*.test.ts'],
exclude: [
'**/node_modules/**',
'**/dist/**',
'test/services/assistant-mode.test.ts',
'test/services/internal-token.test.ts',
'test/auth/internal-token-middleware.test.ts',
'test/routes/internal-schedules.test.ts',
'test/routes/internal-notifications.test.ts',
'test/routes/internal-settings.test.ts',
'test/routes/internal-repos.test.ts',
'src/db/model-state.test.ts',
'src/routes/providers.test.ts',
'src/routes/repos.test.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',
},
},
resolve: {
alias: {
'bun:sqlite': path.resolve(__dirname, './test/mocks/bun-sqlite.ts'),
},
},
})