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") }), )