mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
21 lines
546 B
JavaScript
21 lines
546 B
JavaScript
|
const swc = require("../../../");
|
||
|
const path = require("path");
|
||
|
|
||
|
// it("should handle browserslistrc", () => {
|
||
|
// const filename = path.resolve(
|
||
|
// __dirname + "/../../tests/env/default/input.js"
|
||
|
// );
|
||
|
// expect(swc.transformFileSync(filename).code.trim()).toContain(
|
||
|
// `const a of foo`
|
||
|
// );
|
||
|
// });
|
||
|
|
||
|
it("should handle targets in env", () => {
|
||
|
const filename = path.resolve(
|
||
|
__dirname + "/../../tests/env/targets/input.js"
|
||
|
);
|
||
|
expect(swc.transformFileSync(filename).code.trim()).toContain(
|
||
|
`const a of foo`
|
||
|
);
|
||
|
});
|