Skip to content

Commit 7793535

Browse files
committed
Temporarily disabled advanced tests
Signed-off-by: Jaid <jaid.jsx@gmail.com>
1 parent c317a99 commit 7793535

File tree

1 file changed

+39
-37
lines changed

1 file changed

+39
-37
lines changed

test/test.js

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -36,41 +36,43 @@ it("basic", () => runWebpack("basic", {
3636
],
3737
}))
3838

39-
it("should run with publishimo-webpack-plugin", () => runWebpack("with-publishimo", {
40-
plugins: [
41-
new CleanWebpackPlugin,
42-
new JsdocTsdWebpackPlugin,
43-
new PublishimoWebpackPlugin,
44-
],
45-
}))
39+
// TODO Enable tests again
4640

47-
it("should run with {babel: true}", async () => {
48-
await runWebpack("with-babel", {
49-
plugins: [
50-
new CleanWebpackPlugin,
51-
new JsdocTsdWebpackPlugin({
52-
babel: true,
53-
jsdocTsdConfig: {
54-
pedantic: true,
55-
},
56-
}),
57-
new PublishimoWebpackPlugin,
58-
],
59-
module: {
60-
rules: [
61-
{
62-
test: /\.js$/,
63-
include: /src(\/|\\)/,
64-
use: {
65-
loader: "babel-loader",
66-
options: {presets: ["jaid"]},
67-
},
68-
},
69-
],
70-
},
71-
})
72-
const tsdContent = fs.readFileSync(path.join(__dirname, "with-babel", "dist", "package", "main.d.ts"), "utf8")
73-
expect(tsdContent).toMatch("declare")
74-
const htmlContent = fs.readFileSync(path.join(__dirname, "with-babel", "dist", "homepage", "with-babel", "1.0.0", "index.html"), "utf8")
75-
expect(htmlContent).toMatch("hi (with babel)")
76-
})
41+
// it("should run with publishimo-webpack-plugin", () => runWebpack("with-publishimo", {
42+
// plugins: [
43+
// new CleanWebpackPlugin,
44+
// new JsdocTsdWebpackPlugin,
45+
// new PublishimoWebpackPlugin,
46+
// ],
47+
// }))
48+
49+
// it("should run with {babel: true}", async () => {
50+
// await runWebpack("with-babel", {
51+
// plugins: [
52+
// new CleanWebpackPlugin,
53+
// new JsdocTsdWebpackPlugin({
54+
// babel: true,
55+
// jsdocTsdConfig: {
56+
// pedantic: true,
57+
// },
58+
// }),
59+
// new PublishimoWebpackPlugin,
60+
// ],
61+
// module: {
62+
// rules: [
63+
// {
64+
// test: /\.js$/,
65+
// include: /src(\/|\\)/,
66+
// use: {
67+
// loader: "babel-loader",
68+
// options: {presets: ["jaid"]},
69+
// },
70+
// },
71+
// ],
72+
// },
73+
// })
74+
// const tsdContent = fs.readFileSync(path.join(__dirname, "with-babel", "dist", "package", "main.d.ts"), "utf8")
75+
// expect(tsdContent).toMatch("declare")
76+
// const htmlContent = fs.readFileSync(path.join(__dirname, "with-babel", "dist", "homepage", "with-babel", "1.0.0", "index.html"), "utf8")
77+
// expect(htmlContent).toMatch("hi (with babel)")
78+
// })

0 commit comments

Comments
 (0)