mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
* fix(lsp): Fixes pyright LSP initialization timeout * test(lsp): Add unit tests for bin directory initialization - Add reinitializeBinDirectory() public method for testing - Add 7 comprehensive test cases - Cover success scenarios, error handling, and edge cases - Achieve 100% code and branch coverage * Refactor OpenCode server for testability and fix bin directory tests --------- Co-authored-by: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com>
17 lines
360 B
TypeScript
17 lines
360 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
setupFiles: ['./test/setup.ts'],
|
|
env: {
|
|
NODE_ENV: 'test',
|
|
PORT: '3001',
|
|
DATABASE_PATH: ':memory:',
|
|
AUTH_SECRET: 'test-secret-for-encryption',
|
|
WORKSPACE_PATH: '/test/workspace',
|
|
},
|
|
},
|
|
})
|