test(backend): add Vitest route integration tests for all 8 routers
Introduce a supertest-based integration suite covering user, chat, projectChat, projects, documents, tabular, workflows and downloads routes (77 tests). Supabase, auth, storage and the LLM/chat tooling are mocked; streaming SSE endpoints and the signed-download token round-trip are exercised end to end. Refactor src/index.ts to export createApp() and only bind a port when run directly, and skip rate limiters under NODE_ENV=test so the suite is deterministic. Add vitest + supertest dev deps and test scripts.
| Repository | mwcyu/Mike-fork |
|---|---|
| Author | Claude <noreply@anthropic.com> |
| Authored | |
| Parents | 0ad1b344 |
| Stats | 15 files changed , +2974 , -92 |
| Part of | Vitest + supertest route integration suite |
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-a101800d.md
from inside the repo you want the change in.