mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
**Description:** This PR also adds a CI process for each Wasm binding. --------- Co-authored-by: magic-akari <[email protected]>
16 lines
297 B
JavaScript
16 lines
297 B
JavaScript
const swc = require("../pkg");
|
|
|
|
describe("minify", () => {
|
|
it("should work", async () => {
|
|
const output = await swc.minify(
|
|
`{
|
|
const a = 1;
|
|
console.log(a);
|
|
}`,
|
|
{}
|
|
);
|
|
|
|
expect(output).toMatchSnapshot();
|
|
});
|
|
});
|