From 2cbf425654e30fe9abf5f7b8d375cac6c40da69f Mon Sep 17 00:00:00 2001 From: Dotta Date: Sun, 7 Jun 2026 04:17:32 +0000 Subject: [PATCH] Stub documentReviewService in environment-selection route guard tests PAP-10578 added the documentReviewService stub to two of the three server test scaffolds whose services/index.js mock crashed createApp after documentReviewService(db) was wired into issueRoutes. This third file (environment-selection-route-guards.test.ts) was missed, so it still threw "No documentReviewService export" on createIssueApp. Add the same remapOpenSuggestionsForDocument stub to fix the 5 failures. Co-Authored-By: Claude Opus 4.8 --- server/src/__tests__/environment-selection-route-guards.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/__tests__/environment-selection-route-guards.test.ts b/server/src/__tests__/environment-selection-route-guards.test.ts index e65edb0687b..4acb0440567 100644 --- a/server/src/__tests__/environment-selection-route-guards.test.ts +++ b/server/src/__tests__/environment-selection-route-guards.test.ts @@ -91,6 +91,7 @@ vi.mock("../services/index.js", () => ({ }), documentService: () => ({}), documentAnnotationService: () => ({ remapOpenThreadsForDocument: async () => [] }), + documentReviewService: () => ({ remapOpenSuggestionsForDocument: async () => [] }), routineService: () => ({}), workProductService: () => ({}), }));