diff --git a/packages/cli/__tests__/commands/start.test.ts b/packages/cli/__tests__/commands/start.test.ts index f7223fec3..1b7a3f593 100644 --- a/packages/cli/__tests__/commands/start.test.ts +++ b/packages/cli/__tests__/commands/start.test.ts @@ -2389,9 +2389,6 @@ describe("start command — autoCreateConfig", () => { vi.mocked(detectAvailableAgents).mockResolvedValue([]); vi.mocked(detectAgentRuntime).mockResolvedValue("claude-code"); - const { findFreePort } = await import("../../src/lib/web-dir.js"); - vi.mocked(findFreePort).mockResolvedValue(3000); - // start.ts uses `import { cwd } from "node:process"` which is intercepted // by the node:process mock defined at the top of this file. mockProcessCwd.mockReturnValue(tmpDir); diff --git a/packages/cli/src/commands/start.ts b/packages/cli/src/commands/start.ts index 5636e8407..4f5d86eb0 100644 --- a/packages/cli/src/commands/start.ts +++ b/packages/cli/src/commands/start.ts @@ -590,9 +590,6 @@ export async function autoCreateConfig(workingDir: string): Promise expect(fromLocal.projects[projectId].path).toBe(repoPath); expect(fromGlobal.projects[projectId].path).toBe(repoPath); }, 90_000); -}); \ No newline at end of file +});