Skip to content

Commit

Permalink
test: update snpas webpack 4
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed May 15, 2022
1 parent 0511107 commit 6d42620
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 61 deletions.
22 changes: 9 additions & 13 deletions test/e2e/__snapshots__/multi-compiler.test.js.snap.webpack4
Expand Up @@ -30,7 +30,7 @@ Array [
"[HMR] Checking for updates on the server...",
"[HMR] Cannot apply update. Need to do a full reload!",
"[HMR] Error: Aborted because ./browser.js is not accepted
Update propagation: ./browser.js
Update propagation: ./browser.js -> 0
<stack>",
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
Expand All @@ -50,14 +50,10 @@ Array [
"[HMR] Checking for updates on the server...",
"[HMR] Cannot apply update. Need to do a full reload!",
"[HMR] Error: Aborted because ./browser.js is not accepted
Update propagation: ./browser.js
at applyHandler (http://127.0.0.1:8103/browser.js:1034:31)
at http://127.0.0.1:8103/browser.js:733:21
at Array.map (<anonymous>)
at internalApply (http://127.0.0.1:8103/browser.js:732:54)
at http://127.0.0.1:8103/browser.js:702:26
at waitForBlockingPromises (http://127.0.0.1:8103/browser.js:656:48)
at http://127.0.0.1:8103/browser.js:700:24",
Update propagation: ./browser.js -> 0
at hotApplyInternal (http://127.0.0.1:8103/browser.js:508:30)
at hotApply (http://127.0.0.1:8103/browser.js:362:19)
at http://127.0.0.1:8103/browser.js:337:22",
"[webpack-dev-server] server started with Hot Module Replacement, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hello from the browser",
Expand Down Expand Up @@ -148,7 +144,7 @@ Array [
"[HMR] Checking for updates on the server...",
"[HMR] Cannot apply update. Need to do a full reload!",
"[HMR] Error: Aborted because ./one.js is not accepted
Update propagation: ./one.js
Update propagation: ./one.js -> 0
<stack>",
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
Expand All @@ -166,7 +162,7 @@ Array [
"[HMR] Checking for updates on the server...",
"[HMR] Cannot apply update. Need to do a full reload!",
"[HMR] Error: Aborted because ./two.js is not accepted
Update propagation: ./two.js
Update propagation: ./two.js -> 0
<stack>",
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
Expand All @@ -188,7 +184,7 @@ Array [
"[HMR] Checking for updates on the server...",
"[HMR] Cannot apply update. Need to do a full reload!",
"[HMR] Error: Aborted because ./one.js is not accepted
Update propagation: ./one.js
Update propagation: ./one.js -> 0
<stack>",
"[webpack-dev-server] server started with Hot Module Replacement, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
Expand All @@ -206,7 +202,7 @@ Array [
"[HMR] Checking for updates on the server...",
"[HMR] Cannot apply update. Need to do a full reload!",
"[HMR] Error: Aborted because ./two.js is not accepted
Update propagation: ./two.js
Update propagation: ./two.js -> 0
<stack>",
"[webpack-dev-server] server started with Hot Module Replacement, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
Expand Down
8 changes: 0 additions & 8 deletions test/e2e/__snapshots__/stats.test.js.snap.webpack4
@@ -1,13 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`stats should work and respect the "ignoreWarnings" option 1`] = `
Array [
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;

exports[`stats should work using "{ assets: false }" value for the "stats" option 1`] = `
Array [
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
Expand Down
40 changes: 0 additions & 40 deletions test/e2e/__snapshots__/target.test.js.snap.webpack4
Expand Up @@ -2,46 +2,16 @@

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

exports[`target should work using "browserslist:defaults" target: console messages 1`] = `
Array [
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;

exports[`target should work using "browserslist:defaults" target: page errors 1`] = `Array []`;

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

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

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

exports[`target should work using "es5" target: console messages 1`] = `
Array [
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;

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

exports[`target should work using "false" target: console messages 1`] = `
Array [
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;

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

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

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

exports[`target should work using "nwjs" target: console messages 1`] = `Array []`;

exports[`target should work using "web" target: console messages 1`] = `
Array [
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
Expand All @@ -52,16 +22,6 @@ Array [

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

exports[`target should work using "web,es5" target: console messages 1`] = `
Array [
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;

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

exports[`target should work using "webworker" target: console messages 1`] = `
Array [
"[webpack-dev-server] server started with Hot Module Replacement, Live Reloading, Overlay enabled.",
Expand Down

0 comments on commit 6d42620

Please sign in to comment.