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 <noreply@anthropic.com>
This commit is contained in:
DottaandClaude Opus 4.8 committed 2026-06-07 04:17:32 +00:00
1 parent 8b590e3687
commit 2cbf425654
1 file changed
+1
@@ -91,6 +91,7 @@ vi.mock("../services/index.js", () => ({
}),
documentService: () => ({}),
documentAnnotationService: () => ({ remapOpenThreadsForDocument: async () => [] }),
documentReviewService: () => ({ remapOpenSuggestionsForDocument: async () => [] }),
routineService: () => ({}),
workProductService: () => ({}),
}));