Trek_CN/server/tests/integration
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
..
admin.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
assignments.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
atlas.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
auth.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
backup.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
budget.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
collab.test.ts fix: collab note attachments broken (#343) 2026-04-03 14:11:18 +02:00
dayNotes.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
days.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
files.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
health.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
immich.test.ts fix(immich): remove album photos on unlink 2026-04-04 16:37:14 +02:00
maps.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
mcp.test.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00
misc.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
notifications.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
packing.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
places.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
profile.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
reservations.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
security.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
share.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
trips.test.ts test(trips): assert exact start/end dates in TRIP-002 2026-04-04 00:19:54 +02:00
vacay.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
weather.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00