From 4a7b5892af2b16a9ddff960a30a0dbb43c331370 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 21 Jan 2022 04:58:28 -0800 Subject: Add a little benchmark for transpiling from inside JS --- integration/bunjs-only-snippets/transpiler.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (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 0a33954c5..8480dd091 100644 --- a/integration/bunjs-only-snippets/transpiler.test.js +++ b/integration/bunjs-only-snippets/transpiler.test.js @@ -52,7 +52,11 @@ describe("Bun.Transpiler", () => { describe("transform", () => { it("removes types", () => { - const out = transpiler.transform(code); + expect(code.includes("ActionFunction")).toBe(true); + expect(code.includes("LoaderFunction")).toBe(true); + + const out = transpiler.transformSync(code); + expect(out.includes("ActionFunction")).toBe(false); expect(out.includes("LoaderFunction")).toBe(false); -- cgit v1.2.3