diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/cli/bun.test.ts | 2 | ||||
-rw-r--r-- | test/cli/test/bun-test.test.ts | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/cli/bun.test.ts b/test/cli/bun.test.ts index b8dd258b8..6deedcec8 100644 --- a/test/cli/bun.test.ts +++ b/test/cli/bun.test.ts @@ -68,7 +68,7 @@ describe("bun", () => { fs.writeFileSync(path, "[debug]"); const p = Bun.spawnSync({ - cmd: [bunExe(), "--config", path], + cmd: [bunExe(), "--config=" + path], env: {}, stderr: "inherit", }); diff --git a/test/cli/test/bun-test.test.ts b/test/cli/test/bun-test.test.ts index c40a11742..dfd64b18b 100644 --- a/test/cli/test/bun-test.test.ts +++ b/test/cli/test/bun-test.test.ts @@ -182,21 +182,21 @@ describe("bun test", () => { describe("--bail", () => { test("must provide a number bail", () => { const stderr = runTest({ - args: ["--bail", "foo"], + args: ["--bail=foo"], }); expect(stderr).toContain("expects a number"); }); test("must provide non-negative bail", () => { const stderr = runTest({ - args: ["--bail", "-1"], + args: ["--bail=-1"], }); expect(stderr).toContain("expects a number"); }); test("should not be 0", () => { const stderr = runTest({ - args: ["--bail", "0"], + args: ["--bail=0"], }); expect(stderr).toContain("expects a number"); }); @@ -220,7 +220,7 @@ describe("bun test", () => { test("should bail out after 3 failures", () => { const stderr = runTest({ - args: ["--bail", "3"], + args: ["--bail=3"], input: ` import { test, expect } from "bun:test"; test("test #1", () => { |