From 683b171c3ffc54957e1f02952938ff010fdcbbe0 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 23 Apr 2022 03:15:27 -0700 Subject: :camera: --- integration/bunjs-only-snippets/transpiler.test.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'integration/bunjs-only-snippets/transpiler.test.js') diff --git a/integration/bunjs-only-snippets/transpiler.test.js b/integration/bunjs-only-snippets/transpiler.test.js index 4759b17c9..268ebfd8b 100644 --- a/integration/bunjs-only-snippets/transpiler.test.js +++ b/integration/bunjs-only-snippets/transpiler.test.js @@ -23,7 +23,7 @@ describe("Bun.Transpiler", () => { // Explicitly remove the top-level export, even if it is in use by // another part of the file - eliminate: ["loader"], + eliminate: ["loader", "localVarToRemove"], }, /* only per-file for now, so this isn't good yet */ treeShaking: true, @@ -36,8 +36,6 @@ describe("Bun.Transpiler", () => { }); it("a deletes dead exports and any imports only referenced in dead regions", () => { - console.log("b"); - const out = transpiler.transformSync(` import {getUserById} from './my-database'; @@ -50,9 +48,6 @@ describe("Bun.Transpiler", () => { return
{user.name}
; } `); - - // when all three flags are set, it means - console.log(out); }); it("deletes dead exports and any imports only referenced in dead regions", () => { @@ -104,7 +99,6 @@ describe("Bun.Transpiler", () => { require("bar"); } `); - console.log(output); expect(output.includes("loader")).toBe(false); expect(output.includes("react")).toBe(false); expect(output.includes("deadFS")).toBe(false); -- cgit v1.2.3