Update issue route test DB mock

This commit is contained in:
Dotta committed 2026-05-05 12:06:50 -05:00
1 parent 392bb1ccc1
commit 05c4704bf5
1 file changed
+2
@@ -93,6 +93,7 @@ const mockEnvironmentService = vi.hoisted(() => ({}));
const mockDb = vi.hoisted(() => ({
select: vi.fn(),
execute: vi.fn(),
}));
vi.mock("../services/index.js", () => ({
@@ -197,6 +198,7 @@ describe.sequential("issue goal context routes", () => {
})),
})),
});
mockDb.execute.mockResolvedValue([]);
mockProjectService.getById.mockResolvedValue({
id: legacyProjectLinkedIssue.projectId,
companyId: "company-1",