diff options
author | 2022-11-06 15:26:12 -0800 | |
---|---|---|
committer | 2022-11-06 15:26:12 -0800 | |
commit | 1cb5a7324343c2c7980e0d2d0aeab74ebc602689 (patch) | |
tree | 8f591955c010b5f9d363c5e3890dccc289a19831 /test/bun.js/transpiler.test.js | |
parent | 70fa1564c23d4e94bbc1f36e94bd74b46addc437 (diff) | |
download | bun-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.js | 4 |
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", () => { |