swc/node-swc/__tests__/transform/issues_test.mjs

16 lines
293 B
JavaScript
Raw Normal View History

import swc from "../../..";
it("should respect jsc.minify = false", async () => {
const { code } = await swc.transform(`
const hello = () => {
console.log('hello');
};
`, {
jsc: {
},
minify: false,
});
expect(code).toContain("\n");
})