chore(ci): Remove redudant plugin test

This commit is contained in:
Donny 2022-01-06 18:01:08 +09:00
parent c34f1a977f
commit e19fe7d33b

View File

@ -1,27 +0,0 @@
import swc from '../..';
// it("should resolve", async () => {
// const { code } = await swc.transform(`console.log("Should be removed")`, {
// jsc: {
// experimental: {
// plugins: [
// ['internal-test', {}]
// ]
// }
// }
// });
// expect(code).toMatch(``)
// })
it("should error if it's not resolved", async () => {
await expect(swc.transform(`console.log("Should be removed")`, {
jsc: {
experimental: {
plugins: [
['unknown', {}]
]
}
}
})).rejects.toThrow("failed to resolve plugin `unknown`");
})