Skip to content

Commit 6e9669d

Browse files
test: fix
1 parent e406840 commit 6e9669d

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack4

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ exports[`web socket server URL should not work and output disconnect wrong web s
44
Array [
55
"[HMR] Waiting for update signal from WDS...",
66
"Hey.",
7-
"Failed to load resource: net::ERR_NAME_NOT_RESOLVED",
87
"[webpack-dev-server] Disconnected!",
98
]
109
`;
@@ -15,9 +14,6 @@ exports[`web socket server URL should not work and output disconnect wrong web s
1514
Array [
1615
"[HMR] Waiting for update signal from WDS...",
1716
"Hey.",
18-
"WebSocket connection to 'ws://unknown.unknown:8097/unknown' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED",
19-
"[webpack-dev-server] JSHandle@object",
20-
"[webpack-dev-server] Disconnected!",
2117
]
2218
`;
2319

@@ -276,6 +272,8 @@ exports[`web socket server URL should work with the "client.webSocketURL.path" o
276272
Array [
277273
"[HMR] Waiting for update signal from WDS...",
278274
"Hey.",
275+
"[webpack-dev-server] Hot Module Replacement enabled.",
276+
"[webpack-dev-server] Live Reloading enabled.",
279277
]
280278
`;
281279

test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack5

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ exports[`web socket server URL should not work and output disconnect wrong web s
44
Array [
55
"[HMR] Waiting for update signal from WDS...",
66
"Hey.",
7-
"Failed to load resource: net::ERR_NAME_NOT_RESOLVED",
87
"[webpack-dev-server] Disconnected!",
98
]
109
`;
@@ -15,9 +14,6 @@ exports[`web socket server URL should not work and output disconnect wrong web s
1514
Array [
1615
"[HMR] Waiting for update signal from WDS...",
1716
"Hey.",
18-
"WebSocket connection to 'ws://unknown.unknown:8097/unknown' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED",
19-
"[webpack-dev-server] JSHandle@object",
20-
"[webpack-dev-server] Disconnected!",
2117
]
2218
`;
2319

@@ -276,6 +272,8 @@ exports[`web socket server URL should work with the "client.webSocketURL.path" o
276272
Array [
277273
"[HMR] Waiting for update signal from WDS...",
278274
"Hey.",
275+
"[webpack-dev-server] Hot Module Replacement enabled.",
276+
"[webpack-dev-server] Live Reloading enabled.",
279277
]
280278
`;
281279

test/e2e/web-socket-server-url.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ describe('web socket server URL', () => {
11081108
const devServerOptions = {
11091109
client: {
11101110
webSocketURL: {
1111-
path: '/ws/',
1111+
path: '/ws',
11121112
},
11131113
},
11141114
webSocketServer,

0 commit comments

Comments
 (0)