diff options
author | 2023-08-15 18:24:21 -0700 | |
---|---|---|
committer | 2023-08-21 17:49:58 -0700 | |
commit | 2bb084e3f3184778556885ba1f3d22a862d57dff (patch) | |
tree | e22e6c236515280b41565c284b3e92726b7d1b29 | |
parent | 517643c7da45b123e33124e471350d659c35a31c (diff) | |
download | bun-2bb084e3f3184778556885ba1f3d22a862d57dff.tar.gz bun-2bb084e3f3184778556885ba1f3d22a862d57dff.tar.zst bun-2bb084e3f3184778556885ba1f3d22a862d57dff.zip |
Clean up
-rw-r--r-- | src/cli.zig | 3 | ||||
-rw-r--r-- | test/cli/run/bunfig.test.ts | 7 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/cli.zig b/src/cli.zig index 356a02f2d..1a83f52a4 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -1583,9 +1583,6 @@ pub const Command = struct { if (extension.len > 0) { if (!ctx.debug.loaded_bunfig) { - // get absolute path to bunfig.toml - // var config_path - var success = Arguments.loadConfigPath(ctx.allocator, true, "bun.json", &ctx, .RunCommand) catch false; if (!success) { _ = Arguments.loadConfigPath(ctx.allocator, true, "bunfig.toml", &ctx, .RunCommand) catch false; diff --git a/test/cli/run/bunfig.test.ts b/test/cli/run/bunfig.test.ts index 2c0a0d1fb..0c8a23c65 100644 --- a/test/cli/run/bunfig.test.ts +++ b/test/cli/run/bunfig.test.ts @@ -9,7 +9,6 @@ describe("config", () => { "index.ts": "console.log(caterpillar);", }); const { stdout } = bunRun(`${dir}/index.ts`); - // should be "a\n but console.log adds a newline expect(stdout).toBe("butterfly"); } }); @@ -21,7 +20,6 @@ describe("config", () => { "index.ts": "console.log(caterpillar);", }); const { stdout } = bunRun(`${dir}/index.ts`); - // should be "a\n but console.log adds a newline expect(stdout).toBe("butterfly"); } }); @@ -34,7 +32,6 @@ describe("config", () => { "index.ts": "console.log(caterpillar);", }); const { stdout } = bunRun(`${dir}/index.ts`); - // should be "a\n but console.log adds a newline expect(stdout).toBe("correct"); } }); @@ -46,7 +43,6 @@ describe("config", () => { "index.ts": "console.log(caterpillar);", }); const { stdout } = bunRun(`${dir}/index.ts`, {}, { flags: ["--config", "bun2.json"] }); - // should be "a\n but console.log adds a newline expect(stdout).toBe("butterfly"); } }); @@ -58,7 +54,6 @@ describe("config", () => { "index.ts": "console.log(caterpillar);", }); const { stdout } = bunRun(`${dir}/index.ts`, {}, { flags: ["-c", "bun2.json"] }); - // should be "a\n but console.log adds a newline expect(stdout).toBe("butterfly"); } }); @@ -70,7 +65,6 @@ describe("config", () => { "index.ts": "console.log(caterpillar);", }); const { stdout } = bunRun(`${dir}/index.ts`, {}, { flags: ["--config", "bun2.toml"] }); - // should be "a\n but console.log adds a newline expect(stdout).toBe("butterfly"); } }); @@ -81,7 +75,6 @@ describe("config", () => { "index.ts": "console.log(caterpillar);", }); const { stdout } = bunRun(`${dir}/index.ts`, {}, { flags: ["-c", "bun2.toml"] }); - // should be "a\n but console.log adds a newline expect(stdout).toBe("butterfly"); } }); |