Blocked by infrastructure
Plan: .opencode/plans/code-quality-cleanup.md Phase 2.2-2.4
What's needed
- DB CRUD tests (3-5 tests) — needs
DATABASE_URL pointing to test DB. Helper exists at server/test/utils/db.ts (transaction-per-test).
- Auth flow tests (3-5 tests) — needs OIDC fixture setup. MSW OIDC mocks exist at
server/test/mocks/oidc.ts.
- Event handler tests (3-5 tests) — needs WebSocket/SSE test infrastructure. No existing helpers.
Unblocking steps
- For DB: set up a test database and configure
DATABASE_URL in vitest environment
- For auth: create reusable OIDC mock fixtures (token generation, callback handling)
- For events: evaluate
ws library test helpers or msw WebSocket interceptor
Coverage target: 1.17% → 3-5% after these tests land.
Blocked by infrastructure
Plan:
.opencode/plans/code-quality-cleanup.mdPhase 2.2-2.4What's needed
DATABASE_URLpointing to test DB. Helper exists atserver/test/utils/db.ts(transaction-per-test).server/test/mocks/oidc.ts.Unblocking steps
DATABASE_URLin vitest environmentwslibrary test helpers ormswWebSocket interceptorCoverage target: 1.17% → 3-5% after these tests land.