From c9604c86ec78c9fbeb8ae6dfc8b8404675dcddf2 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Thu, 2 Jul 2026 12:28:58 -0500 Subject: [PATCH] test(core): avoid shell PATH in command test (#34980) --- packages/core/test/command.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/test/command.test.ts b/packages/core/test/command.test.ts index ff327061a9d..72c3dda2c1f 100644 --- a/packages/core/test/command.test.ts +++ b/packages/core/test/command.test.ts @@ -69,11 +69,11 @@ describe("CommandV2", () => { const command = yield* CommandV2.Service yield* command.transform((editor) => { editor.update("review", (command) => { - command.template = "Output: !`bun -e \"process.stdout.write('command-output')\"`" + command.template = "Output: !`echo command-output`" }) }) - expect(yield* command.evaluate({ name: "review" })).toEqual({ text: "Output: command-output" }) + expect((yield* command.evaluate({ name: "review" })).text.replace(/\r?\n$/, "")).toEqual("Output: command-output") }), )