mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 23:16:46 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user