mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 07:26:30 +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:
@@ -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