mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
16 lines
293 B
JavaScript
16 lines
293 B
JavaScript
|
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");
|
||
|
})
|