test(db): run the budget and collections 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 settlement parity cases call the
container's BudgetController in a request context instead of one built by
hand over the SQLite handle, and the collections suite drops its raw
per-table DELETE for the same reset.
This commit is contained in:
Maurice
2026-11-17 18:30:12 +01:00
parent f13d60e7e9
commit b6618eac73
6 changed files with 376 additions and 427 deletions
-3
View File
@@ -63,9 +63,6 @@
"tests/setup.ts": 1,
"tests/unit/auto-backup.test.ts": 1,
"tests/unit/db/database-lazy-open.test.ts": 1,
"tests/unit/mcp/tools-budget-advanced.test.ts": 1,
"tests/unit/mcp/tools-budget.test.ts": 1,
"tests/unit/mcp/tools-collections.test.ts": 1,
"tests/unit/mcp/tools-days-accommodations.test.ts": 1,
"tests/unit/mcp/tools-days.test.ts": 1,
"tests/unit/mcp/tools-feeds-invite.test.ts": 1,
@@ -23,7 +23,6 @@
"tests/unit/db/repositories/MaintenanceRepository.test.ts": 2,
"tests/unit/db/repositories/UserConnections.repository.test.ts": 3,
"tests/unit/demo/demo-reset-sessions.test.ts": 3,
"tests/unit/mcp/tools-budget-advanced.test.ts": 2,
"tests/unit/mcp/tools-prompts.test.ts": 7,
"tests/unit/mcp/tools-roadtrip.test.ts": 1,
"tests/unit/mcp/tools-transit.test.ts": 1,