From 771ed156fe7c760741924ab7c61422009e0fbda4 Mon Sep 17 00:00:00 2001 From: mantrakp04 Date: Mon, 23 Mar 2026 18:06:20 -0700 Subject: [PATCH] Update CLI tests for emulator commands - Replaced the 'run' command expectation with 'start' in the emulator help output. - Removed the test for 'emulator build' help as it is no longer relevant. - Updated error message for invalid architecture in the 'emulator pull' test to improve clarity. These changes enhance the accuracy and relevance of the CLI tests for the emulator functionality. --- apps/e2e/tests/general/cli.test.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/apps/e2e/tests/general/cli.test.ts b/apps/e2e/tests/general/cli.test.ts index 62dbe6ac5..10430cb8f 100644 --- a/apps/e2e/tests/general/cli.test.ts +++ b/apps/e2e/tests/general/cli.test.ts @@ -505,11 +505,10 @@ describe("Stack CLI — Emulator", () => { const { stdout, exitCode } = await runCliBare(["emulator", "--help"]); expect(exitCode).toBe(0); expect(stdout).toContain("pull"); - expect(stdout).toContain("run"); + expect(stdout).toContain("start"); expect(stdout).toContain("stop"); expect(stdout).toContain("reset"); expect(stdout).toContain("status"); - expect(stdout).toContain("build"); expect(stdout).toContain("list-releases"); }); @@ -522,16 +521,10 @@ describe("Stack CLI — Emulator", () => { expect(stdout).toContain("--repo"); }); - it("emulator build help shows arch option", async ({ expect }) => { - const { stdout, exitCode } = await runCliBare(["emulator", "build", "--help"]); - expect(exitCode).toBe(0); - expect(stdout).toContain("--arch"); - }); - it("emulator pull rejects invalid arch values", async ({ expect }) => { const { stderr, exitCode } = await runCliBareFromSource(["emulator", "pull", "--arch", "sparc"]); expect(exitCode).toBe(1); - expect(stderr).toContain("Invalid --arch: sparc; expected one of: arm64, amd64."); + expect(stderr).toContain("Invalid architecture: sparc. Expected arm64 or amd64."); }); it("emulator list-releases help shows repo option", async ({ expect }) => {