test(db): run the AirTrail, atlas expanded, collab and categories MCP suites on the real database module

They seed through the booted container's ORM instead of a second ORM over
the SQLite snapshot mock, and reset through resetDatabase, so they run in
the Postgres lane as well. The PermissionsService the AirTrail cases save
through and the CategoriesMcp and DemoService the categories write
harness attaches are the container's own, called in a request context,
instead of instances built by hand over the SQLite handle.

include_coords compares the coordinates as a set: getTravelStats reads
them through a SELECT DISTINCT without an order, and Postgres returns
them in hash order.
This commit is contained in:
Maurice
2026-11-17 18:30:05 +01:00
parent 1b16fd1683
commit f13d60e7e9
7 changed files with 301 additions and 346 deletions
@@ -1,10 +1,6 @@
[
"tests/unit/mcp/tools-airtrail.test.ts",
"tests/unit/mcp/tools-atlas-expanded.test.ts",
"tests/unit/mcp/tools-budget-advanced.test.ts",
"tests/unit/mcp/tools-budget.test.ts",
"tests/unit/mcp/tools-categories.test.ts",
"tests/unit/mcp/tools-collab-polls-chat.test.ts",
"tests/unit/mcp/tools-collections.test.ts",
"tests/unit/mcp/tools-days-accommodations.test.ts",
"tests/unit/mcp/tools-days.test.ts",