Skip to content

Commit 6069a02

Browse files
test: fix
1 parent 36b6621 commit 6069a02

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

test/e2e/__snapshots__/stats.test.js.snap.webpack4

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`stats should work and respect the "ignoreWarnings" option 1`] = `
4-
Array [
5-
"[HMR] Waiting for update signal from WDS...",
6-
"Hey.",
7-
"[webpack-dev-server] Hot Module Replacement enabled.",
8-
"[webpack-dev-server] Live Reloading enabled.",
9-
]
10-
`;
11-
123
exports[`stats should work using "{ assets: false }" value for the "stats" option 1`] = `
134
Array [
145
"[HMR] Waiting for update signal from WDS...",

test/e2e/stats.test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ describe('stats', () => {
6565
stats: { warningsFilter: /Warning from compilation/ },
6666
},
6767
},
68-
{
68+
];
69+
70+
if (webpack.version.startsWith('5')) {
71+
cases.push({
6972
title: 'should work and respect the "ignoreWarnings" option',
7073
webpackOptions: {
7174
plugins: [
@@ -84,8 +87,8 @@ describe('stats', () => {
8487
],
8588
ignoreWarnings: [/Warning from compilation/],
8689
},
87-
},
88-
];
90+
});
91+
}
8992

9093
cases.forEach((testCase) => {
9194
it(testCase.title, async () => {

0 commit comments

Comments
 (0)