test: repair route test harnesses after upstream sync

↗ view on GitHub · dwmcqueen · 2026-08-13 · 90b44779

- Point the integration harnesses back at the sqlite provider path:
  routes resolve their db via createServerDatabase (which delegates to
  createServerSQLite under MIKE_DATABASE_PROVIDER=sqlite), so mocking
  only lib/supabase left every write invisible to query tracking.
  chat/wordChat mock createServerSQLite directly; projects/workflows
  forward it to the mocked createServerSupabase so the one-shot RPC
  capture overrides keep working.
- Expect sanitized 500 details in projects.routes tests (the routes
  deliberately do not leak raw database error messages).
- Fix a timebomb in legalMonitorConnectorSources.test: the trademark
  dossier test used a hardcoded registrationDate that ages out of the
  14-day lookback window; compute it relative to now.
Repository duncanmcqueen/mike
Author dwmcqueen <dwmcqueen@users.noreply.github.com>
Authored
Parents fb81d686
Stats 5 files changed , +40 , -5
Part of Upstream sync merge and its regression fallout

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-90b44779.md from inside the repo you want the change in.

⬇ Download capture-commit-90b44779.md