test(server): MCP suites run on the booted container and unit suites take services from their module

createTestModule (tests/helpers/test-module.ts) builds a Nest testing module of the domain modules under test over the suite's test db, with a FakeRealtimeService and provider overrides for the collaborators a suite controls. bootTestApp (tests/helpers/test-app.ts) boots AppModule once per file, with recording realtime, fixture storage and an offline geocoder, and the MCP harness takes McpRegistryService from it inside a request context instead of hand-wiring roughly eighty services. The days, day removal and day notes service suites take their subjects from DaysModule and DayNotesModule.
This commit is contained in:
Maurice
2026-10-10 18:38:00 +02:00
parent fa0edfd714
commit 6ce15157a1
16 changed files with 303 additions and 653 deletions
-1
View File
@@ -1009,7 +1009,6 @@
"tests/helpers/journey-repos.ts",
"tests/helpers/journey-share-repos.ts",
"tests/helpers/mcp-harness.ts",
"tests/helpers/mcp-test-controllers.ts",
"tests/helpers/migration-step.ts",
"tests/helpers/notifications-repos.ts",
"tests/helpers/notifications.ts",