diff --git a/packages/cli/src/__tests__/do-cov.test.ts b/packages/cli/src/__tests__/do-cov.test.ts index e9697ecf..a81a5cbb 100644 --- a/packages/cli/src/__tests__/do-cov.test.ts +++ b/packages/cli/src/__tests__/do-cov.test.ts @@ -34,17 +34,6 @@ describe("digitalocean/getConnectionInfo", () => { }); }); -// ─── Constants ─────────────────────────────────────────────────────────────── - -describe("digitalocean/constants", () => { - it("DEFAULT_DROPLET_SIZE is s-2vcpu-2gb", () => { - expect(DEFAULT_DROPLET_SIZE).toBe("s-2vcpu-2gb"); - }); - it("DEFAULT_DO_REGION is nyc3", () => { - expect(DEFAULT_DO_REGION).toBe("nyc3"); - }); -}); - // ─── promptDropletSize ─────────────────────────────────────────────────────── describe("digitalocean/promptDropletSize", () => { diff --git a/packages/cli/src/__tests__/gcp-cov.test.ts b/packages/cli/src/__tests__/gcp-cov.test.ts index 7a0d6660..c0d72d28 100644 --- a/packages/cli/src/__tests__/gcp-cov.test.ts +++ b/packages/cli/src/__tests__/gcp-cov.test.ts @@ -82,17 +82,6 @@ describe("gcp/getConnectionInfo", () => { }); }); -// ─── Constants ─────────────────────────────────────────────────────────────── - -describe("gcp/constants", () => { - it("DEFAULT_MACHINE_TYPE is e2-medium", () => { - expect(DEFAULT_MACHINE_TYPE).toBe("e2-medium"); - }); - it("DEFAULT_ZONE is us-central1-a", () => { - expect(DEFAULT_ZONE).toBe("us-central1-a"); - }); -}); - // ─── promptMachineType ─────────────────────────────────────────────────────── describe("gcp/promptMachineType", () => { diff --git a/packages/cli/src/__tests__/hetzner-cov.test.ts b/packages/cli/src/__tests__/hetzner-cov.test.ts index 2ee685e5..ed1c050f 100644 --- a/packages/cli/src/__tests__/hetzner-cov.test.ts +++ b/packages/cli/src/__tests__/hetzner-cov.test.ts @@ -40,17 +40,6 @@ describe("hetzner/getConnectionInfo", () => { }); }); -// ─── Constants ─────────────────────────────────────────────────────────────── - -describe("hetzner/constants", () => { - it("DEFAULT_SERVER_TYPE is cx23", () => { - expect(DEFAULT_SERVER_TYPE).toBe("cx23"); - }); - it("DEFAULT_LOCATION is nbg1", () => { - expect(DEFAULT_LOCATION).toBe("nbg1"); - }); -}); - // ─── promptServerType ──────────────────────────────────────────────────────── describe("hetzner/promptServerType", () => { diff --git a/packages/cli/src/__tests__/ssh-cov.test.ts b/packages/cli/src/__tests__/ssh-cov.test.ts index ece66634..bf1c8337 100644 --- a/packages/cli/src/__tests__/ssh-cov.test.ts +++ b/packages/cli/src/__tests__/ssh-cov.test.ts @@ -1,7 +1,7 @@ /** * ssh-cov.test.ts — Coverage tests for shared/ssh.ts * - * Covers: spawnInteractive, sleep, startSshTunnel, + * Covers: spawnInteractive, startSshTunnel, * waitForSsh, SSH_BASE_OPTS, SSH_INTERACTIVE_OPTS */ @@ -13,7 +13,7 @@ import * as net from "node:net"; // Suppress stderr during tests — restored in afterAll to avoid contamination let stderrSpy: ReturnType; -const { spawnInteractive, sleep, startSshTunnel, waitForSsh, SSH_BASE_OPTS, SSH_INTERACTIVE_OPTS } = await import( +const { spawnInteractive, startSshTunnel, waitForSsh, SSH_BASE_OPTS, SSH_INTERACTIVE_OPTS } = await import( "../shared/ssh.js" ); @@ -134,22 +134,6 @@ describe("spawnInteractive", () => { }); }); -// ── sleep ────────────────────────────────────────────────────────────── - -describe("sleep", () => { - it("resolves after the specified delay", async () => { - const start = Date.now(); - await sleep(50); - const elapsed = Date.now() - start; - expect(elapsed).toBeGreaterThanOrEqual(40); - }); - - it("resolves with undefined", async () => { - const result = await sleep(1); - expect(result).toBeUndefined(); - }); -}); - // ── startSshTunnel ───────────────────────────────────────────────────── describe("startSshTunnel", () => {