aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/transpiler.test.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-06 15:26:12 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-06 15:26:12 -0800
commit1cb5a7324343c2c7980e0d2d0aeab74ebc602689 (patch)
tree8f591955c010b5f9d363c5e3890dccc289a19831 /test/bun.js/transpiler.test.js
parent70fa1564c23d4e94bbc1f36e94bd74b46addc437 (diff)
downloadbun-1cb5a7324343c2c7980e0d2d0aeab74ebc602689.tar.gz
bun-1cb5a7324343c2c7980e0d2d0aeab74ebc602689.tar.zst
bun-1cb5a7324343c2c7980e0d2d0aeab74ebc602689.zip
[TypeScript] Fix `export = value`
Diffstat (limited to '')
-rw-r--r--test/bun.js/transpiler.test.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/bun.js/transpiler.test.js b/test/bun.js/transpiler.test.js
index 855046911..d4d6c0ca8 100644
--- a/test/bun.js/transpiler.test.js
+++ b/test/bun.js/transpiler.test.js
@@ -94,6 +94,10 @@ describe("Bun.Transpiler", () => {
"export const Foo = Baz.Bar"
);
});
+
+ it("export = {foo: 123}", () => {
+ ts.expectPrinted_("export = {foo: 123}", "module.exports = { foo: 123 }");
+ });
});
describe("generated closures", () => {