diff options
author | 2022-01-21 04:58:28 -0800 | |
---|---|---|
committer | 2022-01-21 04:58:28 -0800 | |
commit | 4a7b5892af2b16a9ddff960a30a0dbb43c331370 (patch) | |
tree | e270b9bc678a2cffa142379a07ca09568972fbd1 /integration/bunjs-only-snippets/transpiler.test.js | |
parent | 9a5aa95893d047db0ab6d83303e30aaf3c9908cc (diff) | |
download | bun-4a7b5892af2b16a9ddff960a30a0dbb43c331370.tar.gz bun-4a7b5892af2b16a9ddff960a30a0dbb43c331370.tar.zst bun-4a7b5892af2b16a9ddff960a30a0dbb43c331370.zip |
Add a little benchmark for transpiling from inside JS
Diffstat (limited to 'integration/bunjs-only-snippets/transpiler.test.js')
-rw-r--r-- | integration/bunjs-only-snippets/transpiler.test.js | 6 |
1 files changed, 5 insertions, 1 deletions
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); |