test(server): refresh issue wake and workspace config mocks

This commit is contained in:
Dotta committed 2026-04-14 12:19:20 -05:00
1 parent 7e0fa2b6f3
commit 2f5eb7e74b
2 files changed
+8 -2

No files matched your search

@@ -43,7 +43,6 @@ describe("execution workspace config helpers", () => {
teardownCommand: "bash ./scripts/teardown-worktree.sh",
cleanupCommand: "pkill -f vite || true",
desiredState: null,
serviceStates: null,
workspaceRuntime: {
services: [{ name: "web", command: "pnpm dev", port: 3100 }],
},
@@ -74,7 +73,6 @@ describe("execution workspace config helpers", () => {
teardownCommand: "bash ./scripts/teardown-worktree.sh",
cleanupCommand: "pkill -f vite || true",
desiredState: null,
serviceStates: null,
workspaceRuntime: {
services: [{ name: "web", command: "pnpm dev" }],
},
@@ -29,6 +29,10 @@ vi.mock("../services/index.js", () => ({
}),
agentService: () => ({
getById: vi.fn(async () => null),
resolveByReference: vi.fn(async (_companyId: string, raw: string) => ({
ambiguous: false,
agent: { id: raw },
})),
}),
documentService: () => ({}),
executionWorkspaceService: () => ({}),
@@ -66,6 +70,10 @@ function registerModuleMocks() {
}),
agentService: () => ({
getById: vi.fn(async () => null),
resolveByReference: vi.fn(async (_companyId: string, raw: string) => ({
ambiguous: false,
agent: { id: raw },
})),
}),
documentService: () => ({}),
executionWorkspaceService: () => ({}),