Skip to content

Commit 37201f9

Browse files
committed
test: update snpas webpack 4
1 parent 3e56eff commit 37201f9

File tree

3 files changed

+9
-61
lines changed

3 files changed

+9
-61
lines changed

test/e2e/__snapshots__/multi-compiler.test.js.snap.webpack4

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Array [
3030
"[HMR] Checking for updates on the server...",
3131
"[HMR] Cannot apply update. Need to do a full reload!",
3232
"[HMR] Error: Aborted because ./browser.js is not accepted
33-
Update propagation: ./browser.js
33+
Update propagation: ./browser.js -> 0
3434
<stack>",
3535
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
3636
"[HMR] Waiting for update signal from WDS...",
@@ -50,14 +50,10 @@ Array [
5050
"[HMR] Checking for updates on the server...",
5151
"[HMR] Cannot apply update. Need to do a full reload!",
5252
"[HMR] Error: Aborted because ./browser.js is not accepted
53-
Update propagation: ./browser.js
54-
at applyHandler (http://127.0.0.1:8103/browser.js:1034:31)
55-
at http://127.0.0.1:8103/browser.js:733:21
56-
at Array.map (<anonymous>)
57-
at internalApply (http://127.0.0.1:8103/browser.js:732:54)
58-
at http://127.0.0.1:8103/browser.js:702:26
59-
at waitForBlockingPromises (http://127.0.0.1:8103/browser.js:656:48)
60-
at http://127.0.0.1:8103/browser.js:700:24",
53+
Update propagation: ./browser.js -> 0
54+
at hotApplyInternal (http://127.0.0.1:8103/browser.js:508:30)
55+
at hotApply (http://127.0.0.1:8103/browser.js:362:19)
56+
at http://127.0.0.1:8103/browser.js:337:22",
6157
"[webpack-dev-server] server started with Hot Module Replacement, Overlay enabled.",
6258
"[HMR] Waiting for update signal from WDS...",
6359
"Hello from the browser",
@@ -148,7 +144,7 @@ Array [
148144
"[HMR] Checking for updates on the server...",
149145
"[HMR] Cannot apply update. Need to do a full reload!",
150146
"[HMR] Error: Aborted because ./one.js is not accepted
151-
Update propagation: ./one.js
147+
Update propagation: ./one.js -> 0
152148
<stack>",
153149
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
154150
"[HMR] Waiting for update signal from WDS...",
@@ -166,7 +162,7 @@ Array [
166162
"[HMR] Checking for updates on the server...",
167163
"[HMR] Cannot apply update. Need to do a full reload!",
168164
"[HMR] Error: Aborted because ./two.js is not accepted
169-
Update propagation: ./two.js
165+
Update propagation: ./two.js -> 0
170166
<stack>",
171167
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
172168
"[HMR] Waiting for update signal from WDS...",
@@ -188,7 +184,7 @@ Array [
188184
"[HMR] Checking for updates on the server...",
189185
"[HMR] Cannot apply update. Need to do a full reload!",
190186
"[HMR] Error: Aborted because ./one.js is not accepted
191-
Update propagation: ./one.js
187+
Update propagation: ./one.js -> 0
192188
<stack>",
193189
"[webpack-dev-server] server started with Hot Module Replacement, Overlay enabled.",
194190
"[HMR] Waiting for update signal from WDS...",
@@ -206,7 +202,7 @@ Array [
206202
"[HMR] Checking for updates on the server...",
207203
"[HMR] Cannot apply update. Need to do a full reload!",
208204
"[HMR] Error: Aborted because ./two.js is not accepted
209-
Update propagation: ./two.js
205+
Update propagation: ./two.js -> 0
210206
<stack>",
211207
"[webpack-dev-server] server started with Hot Module Replacement, Overlay enabled.",
212208
"[HMR] Waiting for update signal from WDS...",

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +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-
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
6-
"[HMR] Waiting for update signal from WDS...",
7-
"Hey.",
8-
]
9-
`;
10-
113
exports[`stats should work using "{ assets: false }" value for the "stats" option 1`] = `
124
Array [
135
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,16 @@
22

33
exports[`target should work using "async-node" target: console messages 1`] = `Array []`;
44

5-
exports[`target should work using "browserslist:defaults" target: console messages 1`] = `
6-
Array [
7-
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
8-
"[HMR] Waiting for update signal from WDS...",
9-
"Hey.",
10-
]
11-
`;
12-
13-
exports[`target should work using "browserslist:defaults" target: page errors 1`] = `Array []`;
14-
155
exports[`target should work using "electron-main" target: console messages 1`] = `Array []`;
166

177
exports[`target should work using "electron-preload" target: console messages 1`] = `Array []`;
188

199
exports[`target should work using "electron-renderer" target: console messages 1`] = `Array []`;
2010

21-
exports[`target should work using "es5" target: console messages 1`] = `
22-
Array [
23-
"[HMR] Waiting for update signal from WDS...",
24-
"Hey.",
25-
]
26-
`;
27-
28-
exports[`target should work using "es5" target: page errors 1`] = `Array []`;
29-
30-
exports[`target should work using "false" target: console messages 1`] = `
31-
Array [
32-
"[HMR] Waiting for update signal from WDS...",
33-
"Hey.",
34-
]
35-
`;
36-
37-
exports[`target should work using "false" target: page errors 1`] = `Array []`;
38-
3911
exports[`target should work using "node" target: console messages 1`] = `Array []`;
4012

4113
exports[`target should work using "node-webkit" target: console messages 1`] = `Array []`;
4214

43-
exports[`target should work using "nwjs" target: console messages 1`] = `Array []`;
44-
4515
exports[`target should work using "web" target: console messages 1`] = `
4616
Array [
4717
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
@@ -52,16 +22,6 @@ Array [
5222

5323
exports[`target should work using "web" target: page errors 1`] = `Array []`;
5424

55-
exports[`target should work using "web,es5" target: console messages 1`] = `
56-
Array [
57-
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
58-
"[HMR] Waiting for update signal from WDS...",
59-
"Hey.",
60-
]
61-
`;
62-
63-
exports[`target should work using "web,es5" target: page errors 1`] = `Array []`;
64-
6525
exports[`target should work using "webworker" target: console messages 1`] = `
6626
Array [
6727
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",

0 commit comments

Comments
 (0)