Files
thedotmack__claude-mem/tests/viewer
Alex Newman a8cf671648 fix(tests+pipeline): repair test suite (46->7 fails) + plan-09 schema self-healing
Test-suite repair:
- Fix cross-suite mock.module contamination: polluting files (worker-api-endpoints,
  hook-execution-e2e, file-context, chroma-mcp-manager-*, summarize-*) now snapshot
  and restore real modules in afterAll, making the suite order-independent (17 fails).
- Align stale tests to current contracts (parser {valid,observations[],summary} API,
  worker-spawner WorkerStartResult, welcome-card v3 key, haiku default model, .mcp.json
  removal, claude-md mock).

Product fixes:
- plan-09: SchemaRepair.ts + Database.openWithSchemaRepair() — self-heal malformed
  on-disk schema (orphaned index / dropped column) via sqlite3 .recover before PRAGMA,
  preserving data. Migrations re-establish canonical schema. (#2433 groundwork)
- Welcome-hint flag now reads env before cached settings (env always wins).
- Replace console.* with logger.* in background services (plugin-state, project-filter,
  worktree, smart-file-read/parser, CorpusRoutes).

Remaining 7 failures are openclaw Observation I/O tests, addressed in plan-08.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-28 16:44:37 -07:00
..