Files
opencode-manager/backend/vitest.config.ts
T
Chris Scott 74cdeb3926 fix: update settings and skills handling with assistant redirect (#220)
* fix: enable swipe-back suspension on more drawer and remove unused variable

* refactor(frontend): improve dialog component and settings navigation

* fix: disable route swipe suspension in MoreDrawer to prevent unintended navigation

* fix(frontend): enable swipe-back suspension on more drawer route

* refactor(frontend): improve mobile navigation drawer and tab bar

* feat: add schedules service and workspace hook with navigation updates

* chore: add workspace hook, schedules library, and tests

* fix: prevent MoreDrawer sentinel from undoing navigation

* feat: per-agent model selection and UI refinements (#217)

* feat: per-agent model selection and UI refinements

- Add agentModels store with setAgentModel/getAgentModel
- PromptInput uses session model priority and stores agent model on change
- useContextUsage derives model from assistant message instead of global
- Migrate sub-agent/subtask badges from purple to blue with refined styling
- Fix MoreDrawer sentinel to skip history-back on navigation

* refactor: improve per-agent model selection and task tool call status indicators

* feat: add repo management skill and internal repos API

* fix: improve assistant session launcher and UI components

* fix: update atomic-json test assertions

* refactor: split Assistant Mode instructions between AGENTS.md and assistant.md

* loop: todo-header-mobile completed after 3 iterations (#218)

* loop: stt-perf-1 completed after 5 iterations

* fix: load audio worklet per recording context

* fix: canonicalize assistant navigation routes

* fix: adjust scroll-up threshold for header visibility

* fix: update settings and skills handling with assistant redirect

* refactor: simplify context usage indicator and extract token sum helper

* feat: add currently selected model row to popover and fix responsive truncate
2026-05-07 18:36:03 -04:00

40 lines
1.1 KiB
TypeScript

import { defineConfig } from 'vitest/config'
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',
],
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': './test/mocks/bun-sqlite.ts',
},
},
})