diff --git a/server/src/__tests__/document-annotation-routes.test.ts b/server/src/__tests__/document-annotation-routes.test.ts index 0a2aa0e6784..a2b5aaca857 100644 --- a/server/src/__tests__/document-annotation-routes.test.ts +++ b/server/src/__tests__/document-annotation-routes.test.ts @@ -121,6 +121,7 @@ function registerModuleMocks() { agentService: () => ({ getById: vi.fn(), list: vi.fn(async () => []) }), companyService: () => ({ getById: vi.fn(async () => ({ id: companyId, attachmentMaxBytes: 10_000_000 })) }), documentAnnotationService: () => mockAnnotationService, + documentReviewService: () => ({ remapOpenSuggestionsForDocument: async () => [] }), documentService: () => mockDocumentService, environmentService: () => ({}), executionWorkspaceService: () => ({}), diff --git a/server/src/__tests__/issue-document-restore-routes.test.ts b/server/src/__tests__/issue-document-restore-routes.test.ts index d0fe8df9baa..a29728af249 100644 --- a/server/src/__tests__/issue-document-restore-routes.test.ts +++ b/server/src/__tests__/issue-document-restore-routes.test.ts @@ -90,6 +90,7 @@ function registerModuleMocks() { vi.doMock("../services/documents.js", () => ({ documentAnnotationService: () => ({ remapOpenThreadsForDocument: async () => [] }), + documentReviewService: () => ({ remapOpenSuggestionsForDocument: async () => [] }), documentService: () => mockDocumentsService, })); @@ -116,6 +117,7 @@ function registerModuleMocks() { accessService: () => mockAccessService, agentService: () => mockAgentService, documentAnnotationService: () => ({ remapOpenThreadsForDocument: async () => [] }), + documentReviewService: () => ({ remapOpenSuggestionsForDocument: async () => [] }), documentService: () => mockDocumentsService, executionWorkspaceService: () => ({}), feedbackService: () => ({}),