You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/__snapshots__/validate-options.test.js.snap.webpack4
+5-5
Original file line number
Diff line number
Diff line change
@@ -152,15 +152,15 @@ exports[`options validate should throw an error on the "client" option with '{"w
152
152
-> Tells clients connected to devServer to use the provided hostname."
153
153
`;
154
154
155
-
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"hostname":true,"path":"","port":8080}}' value 1`] = `
155
+
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"hostname":true,"pathname":"","port":8080}}' value 1`] = `
156
156
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
157
157
- options.client.webSocketURL.hostname should be a non-empty string.
158
158
-> Tells clients connected to devServer to use the provided hostname."
159
159
`;
160
160
161
-
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"path":true}}' value 1`] = `
161
+
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"pathname":true}}' value 1`] = `
162
162
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
163
-
- options.client.webSocketURL.path should be a string.
163
+
- options.client.webSocketURL.pathname should be a string.
164
164
-> Tells clients connected to devServer to use the provided path to connect."
165
165
`;
166
166
@@ -172,7 +172,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
172
172
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
173
173
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
174
174
- options.client.webSocketURL should be one of these:
Copy file name to clipboardExpand all lines: test/__snapshots__/validate-options.test.js.snap.webpack5
+5-5
Original file line number
Diff line number
Diff line change
@@ -152,15 +152,15 @@ exports[`options validate should throw an error on the "client" option with '{"w
152
152
-> Tells clients connected to devServer to use the provided hostname."
153
153
`;
154
154
155
-
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"hostname":true,"path":"","port":8080}}' value 1`] = `
155
+
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"hostname":true,"pathname":"","port":8080}}' value 1`] = `
156
156
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
157
157
- options.client.webSocketURL.hostname should be a non-empty string.
158
158
-> Tells clients connected to devServer to use the provided hostname."
159
159
`;
160
160
161
-
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"path":true}}' value 1`] = `
161
+
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"pathname":true}}' value 1`] = `
162
162
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
163
-
- options.client.webSocketURL.path should be a string.
163
+
- options.client.webSocketURL.pathname should be a string.
164
164
-> Tells clients connected to devServer to use the provided path to connect."
165
165
`;
166
166
@@ -172,7 +172,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
172
172
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
173
173
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
174
174
- options.client.webSocketURL should be one of these:
Copy file name to clipboardExpand all lines: test/cli/__snapshots__/basic.test.js.snap.webpack4
+1-1
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Options:
59
59
--client-web-socket-url <value> Allows to specify URL to web socket server (useful when you're proxying dev server and client script does not always know where to connect to).
60
60
--client-web-socket-url-hostname <value> Tells clients connected to devServer to use the provided hostname.
61
61
--client-web-socket-url-port <value> Tells clients connected to devServer to use the provided port.
62
-
--client-web-socket-url-path <value> Tells clients connected to devServer to use the provided path to connect.
62
+
--client-web-socket-url-pathname <value> Tells clients connected to devServer to use the provided path to connect.
63
63
--client-web-socket-url-protocol <value> Tells clients connected to devServer to use the provided protocol.
64
64
--client-web-socket-url-username <value> Tells clients connected to devServer to use the provided username to authenticate.
65
65
--client-web-socket-url-password <value> Tells clients connected to devServer to use the provided password to authenticate.
Copy file name to clipboardExpand all lines: test/cli/__snapshots__/basic.test.js.snap.webpack5
+1-1
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Options:
59
59
--client-transport <value> Allows to set custom transport to communicate with dev server.
60
60
--client-web-socket-url <value> Allows to specify URL to web socket server (useful when you're proxying dev server and client script does not always know where to connect to).
61
61
--client-web-socket-url-hostname <value> Tells clients connected to devServer to use the provided hostname.
62
-
--client-web-socket-url-path <value> Tells clients connected to devServer to use the provided path to connect.
62
+
--client-web-socket-url-pathname <value> Tells clients connected to devServer to use the provided path to connect.
63
63
--client-web-socket-url-password <value> Tells clients connected to devServer to use the provided password to authenticate.
64
64
--client-web-socket-url-port <value> Tells clients connected to devServer to use the provided port.
65
65
--client-web-socket-url-protocol <value> Tells clients connected to devServer to use the provided protocol.
Copy file name to clipboardExpand all lines: test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack4
+8-8
Original file line number
Diff line number
Diff line change
@@ -283,7 +283,7 @@ Array [
283
283
284
284
exports[`web socket server URL should work with the "client.webSocketURL.password" option ("ws"): page errors 1`] = `Array []`;
285
285
286
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option ("sockjs"): console messages 1`] = `
286
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option ("sockjs"): console messages 1`] = `
287
287
Array [
288
288
"[HMR] Waiting for update signal from WDS...",
289
289
"Hey.",
@@ -292,9 +292,9 @@ Array [
292
292
]
293
293
`;
294
294
295
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option ("sockjs"): page errors 1`] = `Array []`;
295
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option ("sockjs"): page errors 1`] = `Array []`;
296
296
297
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option ("ws"): console messages 1`] = `
297
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option ("ws"): console messages 1`] = `
298
298
Array [
299
299
"[HMR] Waiting for update signal from WDS...",
300
300
"Hey.",
@@ -303,9 +303,9 @@ Array [
303
303
]
304
304
`;
305
305
306
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option ("ws"): page errors 1`] = `Array []`;
306
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option ("ws"): page errors 1`] = `Array []`;
307
307
308
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option and custom web socket server "path" ("sockjs"): console messages 1`] = `
308
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option and custom web socket server "path" ("sockjs"): console messages 1`] = `
309
309
Array [
310
310
"[HMR] Waiting for update signal from WDS...",
311
311
"Hey.",
@@ -314,9 +314,9 @@ Array [
314
314
]
315
315
`;
316
316
317
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option and custom web socket server "path" ("sockjs"): page errors 1`] = `Array []`;
317
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option and custom web socket server "path" ("sockjs"): page errors 1`] = `Array []`;
318
318
319
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option and custom web socket server "path" ("ws"): console messages 1`] = `
319
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option and custom web socket server "path" ("ws"): console messages 1`] = `
320
320
Array [
321
321
"[HMR] Waiting for update signal from WDS...",
322
322
"Hey.",
@@ -325,7 +325,7 @@ Array [
325
325
]
326
326
`;
327
327
328
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option and custom web socket server "path" ("ws"): page errors 1`] = `Array []`;
328
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option and custom web socket server "path" ("ws"): page errors 1`] = `Array []`;
329
329
330
330
exports[`web socket server URL should work with the "client.webSocketURL.port" option ("sockjs"): console messages 1`] = `
Copy file name to clipboardExpand all lines: test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack5
+8-8
Original file line number
Diff line number
Diff line change
@@ -283,7 +283,7 @@ Array [
283
283
284
284
exports[`web socket server URL should work with the "client.webSocketURL.password" option ("ws"): page errors 1`] = `Array []`;
285
285
286
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option ("sockjs"): console messages 1`] = `
286
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option ("sockjs"): console messages 1`] = `
287
287
Array [
288
288
"[HMR] Waiting for update signal from WDS...",
289
289
"Hey.",
@@ -292,9 +292,9 @@ Array [
292
292
]
293
293
`;
294
294
295
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option ("sockjs"): page errors 1`] = `Array []`;
295
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option ("sockjs"): page errors 1`] = `Array []`;
296
296
297
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option ("ws"): console messages 1`] = `
297
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option ("ws"): console messages 1`] = `
298
298
Array [
299
299
"[HMR] Waiting for update signal from WDS...",
300
300
"Hey.",
@@ -303,9 +303,9 @@ Array [
303
303
]
304
304
`;
305
305
306
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option ("ws"): page errors 1`] = `Array []`;
306
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option ("ws"): page errors 1`] = `Array []`;
307
307
308
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option and custom web socket server "path" ("sockjs"): console messages 1`] = `
308
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option and custom web socket server "path" ("sockjs"): console messages 1`] = `
309
309
Array [
310
310
"[HMR] Waiting for update signal from WDS...",
311
311
"Hey.",
@@ -314,9 +314,9 @@ Array [
314
314
]
315
315
`;
316
316
317
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option and custom web socket server "path" ("sockjs"): page errors 1`] = `Array []`;
317
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option and custom web socket server "path" ("sockjs"): page errors 1`] = `Array []`;
318
318
319
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option and custom web socket server "path" ("ws"): console messages 1`] = `
319
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option and custom web socket server "path" ("ws"): console messages 1`] = `
320
320
Array [
321
321
"[HMR] Waiting for update signal from WDS...",
322
322
"Hey.",
@@ -325,7 +325,7 @@ Array [
325
325
]
326
326
`;
327
327
328
-
exports[`web socket server URL should work with the "client.webSocketURL.path" option and custom web socket server "path" ("ws"): page errors 1`] = `Array []`;
328
+
exports[`web socket server URL should work with the "client.webSocketURL.pathname" option and custom web socket server "path" ("ws"): page errors 1`] = `Array []`;
329
329
330
330
exports[`web socket server URL should work with the "client.webSocketURL.port" option ("sockjs"): console messages 1`] = `
0 commit comments