Skip to content

Commit 58e28a8

Browse files
committed
fix: update snapshots
Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>
1 parent e9d63b4 commit 58e28a8

15 files changed

Lines changed: 29 additions & 991 deletions

test/__snapshots__/normalize-options.test.js.snap.webpack5

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -403,63 +403,6 @@ exports[`normalize options client path without leading/ending slashes 1`] = `
403403
}
404404
`;
405405

406-
exports[`normalize options client.webSocketTransport sockjs string 1`] = `
407-
{
408-
"allowedHosts": "auto",
409-
"bonjour": false,
410-
"client": {
411-
"logging": "info",
412-
"overlay": true,
413-
"reconnect": 10,
414-
"webSocketTransport": "sockjs",
415-
"webSocketURL": {},
416-
},
417-
"compress": true,
418-
"devMiddleware": {},
419-
"historyApiFallback": false,
420-
"host": undefined,
421-
"hot": true,
422-
"liveReload": true,
423-
"open": [],
424-
"port": "<auto>",
425-
"server": {
426-
"options": {},
427-
"type": "http",
428-
},
429-
"setupExitSignals": true,
430-
"static": [
431-
{
432-
"directory": "<cwd>/public",
433-
"publicPath": [
434-
"/",
435-
],
436-
"serveIndex": {
437-
"icons": true,
438-
},
439-
"staticOptions": {},
440-
"watch": {
441-
"alwaysStat": true,
442-
"atomic": false,
443-
"followSymlinks": false,
444-
"ignoreInitial": true,
445-
"ignorePermissionErrors": true,
446-
"ignored": undefined,
447-
"interval": undefined,
448-
"persistent": true,
449-
"usePolling": false,
450-
},
451-
},
452-
],
453-
"watchFiles": [],
454-
"webSocketServer": {
455-
"options": {
456-
"path": "/ws",
457-
},
458-
"type": "ws",
459-
},
460-
}
461-
`;
462-
463406
exports[`normalize options client.webSocketTransport ws string 1`] = `
464407
{
465408
"allowedHosts": "auto",

test/__snapshots__/validate-options.test.js.snap.webpack5

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,11 @@ exports[`options validate should throw an error on the "client" option with '{"w
189189
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
190190
Details:
191191
* options.client.webSocketTransport should be one of these:
192-
"sockjs" | "ws" | non-empty string
192+
"ws" | non-empty string
193193
-> Allows to set custom web socket transport to communicate with dev server.
194194
-> Read more at https://webpack.js.org/configuration/dev-server/#websockettransport
195195
Details:
196-
* options.client.webSocketTransport should be one of these:
197-
"sockjs" | "ws"
196+
* options.client.webSocketTransport should be "ws".
198197
* options.client.webSocketTransport should be a non-empty string."
199198
`;
200199

@@ -787,48 +786,45 @@ exports[`options validate should throw an error on the "webSocketServer" option
787786
exports[`options validate should throw an error on the "webSocketServer" option with '{"type":false}' value 1`] = `
788787
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
789788
- options.webSocketServer should be one of these:
790-
false | "sockjs" | "ws" | non-empty string | function | object { type?, options? }
789+
false | "ws" | non-empty string | function | object { type?, options? }
791790
-> Allows to set web socket server and options (by default 'ws').
792791
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver
793792
Details:
794793
* options.webSocketServer.type should be one of these:
795-
"sockjs" | "ws" | non-empty string | function
794+
"ws" | non-empty string | function
796795
Details:
797-
* options.webSocketServer.type should be one of these:
798-
"sockjs" | "ws"
796+
* options.webSocketServer.type should be "ws".
799797
* options.webSocketServer.type should be a non-empty string.
800798
* options.webSocketServer.type should be an instance of function."
801799
`;
802800

803801
exports[`options validate should throw an error on the "webSocketServer" option with '{"type":true}' value 1`] = `
804802
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
805803
- options.webSocketServer should be one of these:
806-
false | "sockjs" | "ws" | non-empty string | function | object { type?, options? }
804+
false | "ws" | non-empty string | function | object { type?, options? }
807805
-> Allows to set web socket server and options (by default 'ws').
808806
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver
809807
Details:
810808
* options.webSocketServer.type should be one of these:
811-
"sockjs" | "ws" | non-empty string | function
809+
"ws" | non-empty string | function
812810
Details:
813-
* options.webSocketServer.type should be one of these:
814-
"sockjs" | "ws"
811+
* options.webSocketServer.type should be "ws".
815812
* options.webSocketServer.type should be a non-empty string.
816813
* options.webSocketServer.type should be an instance of function."
817814
`;
818815

819816
exports[`options validate should throw an error on the "webSocketServer" option with 'null' value 1`] = `
820817
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
821818
- options.webSocketServer should be one of these:
822-
false | "sockjs" | "ws" | non-empty string | function | object { type?, options? }
819+
false | "ws" | non-empty string | function | object { type?, options? }
823820
-> Allows to set web socket server and options (by default 'ws').
824821
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver
825822
Details:
826823
* options.webSocketServer should be one of these:
827-
false | "sockjs" | "ws"
824+
false | "ws"
828825
Details:
829826
* options.webSocketServer should be false.
830-
* options.webSocketServer should be one of these:
831-
"sockjs" | "ws"
827+
* options.webSocketServer should be "ws".
832828
* options.webSocketServer should be a non-empty string.
833829
* options.webSocketServer should be an instance of function.
834830
* options.webSocketServer should be an object:
@@ -838,16 +834,15 @@ exports[`options validate should throw an error on the "webSocketServer" option
838834
exports[`options validate should throw an error on the "webSocketServer" option with 'true' value 1`] = `
839835
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
840836
- options.webSocketServer should be one of these:
841-
false | "sockjs" | "ws" | non-empty string | function | object { type?, options? }
837+
false | "ws" | non-empty string | function | object { type?, options? }
842838
-> Allows to set web socket server and options (by default 'ws').
843839
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver
844840
Details:
845841
* options.webSocketServer should be one of these:
846-
false | "sockjs" | "ws"
842+
false | "ws"
847843
Details:
848844
* options.webSocketServer should be false.
849-
* options.webSocketServer should be one of these:
850-
"sockjs" | "ws"
845+
* options.webSocketServer should be "ws".
851846
* options.webSocketServer should be a non-empty string.
852847
* options.webSocketServer should be an instance of function.
853848
* options.webSocketServer should be an object:

test/cli/__snapshots__/server-option.test.js.snap.webpack5

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ exports[`"server" CLI options should work using "--server-options-key-reset --se
3535
`;
3636

3737
exports[`"server" CLI options should work using "--server-options-request-cert" 1`] = `
38-
"<i> [webpack-dev-server] Generating SSL certificate...
39-
<i> [webpack-dev-server] SSL certificate: <cwd>/node_modules/.cache/webpack-dev-server/server.pem
38+
"<i> [webpack-dev-server] SSL certificate: <cwd>/node_modules/.cache/webpack-dev-server/server.pem
4039
<i> [webpack-dev-server] Project is running at:
4140
<i> Loopback: https://localhost:<port>/, https://<ip-v4>:<port>/, https://[<ip-v6>]:<port>/
4241
<i> [webpack-dev-server] On Your Network (IPv4): https://<ip-v4>:<port>/

test/client/clients/__snapshots__/SockJSClient.test.js.snap.webpack5

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)