Skip to content

Commit f5910db

Browse files
committed
test: migrate stats test on HTMLGeneratorPlugin
1 parent ad1d14c commit f5910db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/e2e/stats.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const webpack = require("webpack");
44
const Server = require("../../lib/Server");
55
const config = require("../fixtures/client-config/webpack.config");
6+
const HTMLGeneratorPlugin = require("../helpers/html-generator-plugin");
67
const runBrowser = require("../helpers/run-browser");
78
const port = require("../ports-map").stats;
89

@@ -76,6 +77,7 @@ describe("stats", () => {
7677
);
7778
},
7879
},
80+
new HTMLGeneratorPlugin(),
7981
],
8082
stats: { warningsFilter: /Warning from compilation/ },
8183
},
@@ -99,6 +101,7 @@ describe("stats", () => {
99101
);
100102
},
101103
},
104+
new HTMLGeneratorPlugin(),
102105
],
103106
ignoreWarnings: [/Warning from compilation/],
104107
},
@@ -123,7 +126,7 @@ describe("stats", () => {
123126
consoleMessages.push(message);
124127
});
125128

126-
await page.goto(`http://localhost:${port}/main`, {
129+
await page.goto(`http://localhost:${port}/`, {
127130
waitUntil: "networkidle0",
128131
});
129132

0 commit comments

Comments
 (0)