mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
e5f46a6800
swc: - Ensure that #2281 is fixed. (#2281) wasm: - Fix `baseUrl` and `paths` support. - Apply `hygiene` pass.
12 lines
279 B
JavaScript
12 lines
279 B
JavaScript
const swc = require("../pkg");
|
|
|
|
it("properly reports error", function () {
|
|
expect(() => {
|
|
swc.transformSync("Foo {}", {});
|
|
}).toThrow("failed to parse module");
|
|
|
|
expect(() => {
|
|
swc.transformSync("Foo {}", {});
|
|
}).toThrow("error: Expected ';', '}' or <eof>");
|
|
});
|