History

test(mcp): type archived workspace fixtures

Julius Marminge committed 2 months ago

Commit f1bb3181 parent 96d40cf1 file · +2 −2Browse files

Unified · Split

apps/server/src/mcp/WorktreeMcpService.test.ts+2−2
@@ -269,7 +269,7 @@ const makeHarness = (options: HarnessOptions = {}) => { · 268 unmodified lines
269 status: item.active === true ? "running" : "idle",269 status: item.active === true ? "running" : "idle",
270 activeRunId: item.active === true ? "run-active" : null,270 activeRunId: item.active === true ? "run-active" : null,
271 lineage: { relationshipToParent: "none" },271 lineage: { relationshipToParent: "none" },
272 }) as OrchestrationV2ThreadShell,272 }) as unknown as OrchestrationV2ThreadShell,
273 );273 );
274 const archivedThreadShells =274 const archivedThreadShells =
275 options.archivedProjectThread === undefined275 options.archivedProjectThread === undefined
@@ -286,7 +286,7 @@ const makeHarness = (options: HarnessOptions = {}) => { · 10 unmodified lines
286 archivedAt: "2026-01-02T00:00:00.000Z",286 archivedAt: "2026-01-02T00:00:00.000Z",
287 lineage: { relationshipToParent: "none" },287 lineage: { relationshipToParent: "none" },
288 },288 },
289 ] as ReadonlyArray<OrchestrationV2ThreadShell>);289 ] as unknown as ReadonlyArray<OrchestrationV2ThreadShell>);
290 const listProjectThreads = vi.fn(() => Effect.succeed(projectThreadShells));290 const listProjectThreads = vi.fn(() => Effect.succeed(projectThreadShells));
291 const getShellSnapshot = vi.fn(() =>291 const getShellSnapshot = vi.fn(() =>
292 Effect.succeed({292 Effect.succeed({