Trek_CN/server/tests/helpers
jubnl 1bddb3c588
refactor(mcp): replace direct DB access with service layer calls
Replace all db.prepare() calls in mcp/index.ts, mcp/resources.ts, and
mcp/tools.ts with calls to the service layer. Add missing service functions:
- authService: isDemoUser, verifyMcpToken, verifyJwtToken
- adminService: isAddonEnabled
- atlasService: listVisitedCountries
- tripService: getTripSummary, listTrips with null archived param

Also fix getAssignmentWithPlace and formatAssignmentWithPlace to expose
place_id, assignment_time, and assignment_end_time at the top level, and
fix updateDay to correctly handle null title for clearing.

Add comprehensive unit and integration test suite for the MCP layer (821 tests all passing).
2026-04-04 18:12:53 +02:00
..
auth.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
factories.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00
mcp-harness.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00
test-db.ts fix(immich): remove album photos on unlink 2026-04-04 16:37:14 +02:00
ws-client.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00