From af4f1c7d39d6dd4b5e2619d35cd802b5ad6e5030 Mon Sep 17 00:00:00 2001 From: Don Isaac Date: Sun, 8 Dec 2024 23:48:43 -0800 Subject: [PATCH] test: fix case to allow `bun-debug` (#15660) Co-authored-by: Don Isaac --- test/cli/install/bun-run.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cli/install/bun-run.test.ts b/test/cli/install/bun-run.test.ts index dc1866ec4b..52954e16c5 100644 --- a/test/cli/install/bun-run.test.ts +++ b/test/cli/install/bun-run.test.ts @@ -605,7 +605,7 @@ it("should run with bun instead of npm even with leading spaces", async () => { env: bunEnv, }); - expect(stderr.toString()).toBe("$ bun run other_script \n$ echo hi \n"); + expect(stderr.toString()).toMatch(/\$ bun(-debug)? run other_script \n\$ echo hi \n/); expect(stdout.toString()).toEndWith("hi\n"); expect(exitCode).toBe(0); }