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
+2 -2
View File
@@ -16,11 +16,11 @@
"no-misleading-character-class": 1
},
"tests": {
"@typescript-eslint/no-explicit-any": 1571,
"@typescript-eslint/no-explicit-any": 1569,
"@typescript-eslint/no-non-null-assertion": 1757,
"@typescript-eslint/no-require-imports": 25,
"@typescript-eslint/no-unsafe-function-type": 7,
"@typescript-eslint/no-unused-vars": 101,
"@typescript-eslint/no-unused-vars": 96,
"no-await-in-loop": 459,
"no-console": 18,
"no-empty": 2,
-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",