diff --git a/test/server/__snapshots__/Server.test.js.snap.webpack4 b/test/server/__snapshots__/Server.test.js.snap.webpack4 index 5a6534675f..f74bcd0791 100644 --- a/test/server/__snapshots__/Server.test.js.snap.webpack4 +++ b/test/server/__snapshots__/Server.test.js.snap.webpack4 @@ -4,7 +4,7 @@ exports[`Server DevServerPlugin add hot option 1`] = ` Array [ Array [ "client", - "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws", + "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws&logging=warn", ], Array [ "node_modules", @@ -22,7 +22,7 @@ exports[`Server DevServerPlugin add hot-only option 1`] = ` Array [ Array [ "client", - "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws", + "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws&logging=warn", ], Array [ "node_modules", @@ -40,7 +40,7 @@ exports[`Server DevServerPlugin should create and run server with old parameters Array [ Array [ "client", - "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws", + "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws&logging=warn", ], Array [ "node_modules", @@ -63,6 +63,7 @@ Object { ], "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -103,6 +104,7 @@ Object { "allowedHosts": "all", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -143,6 +145,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "/path/to/custom/client/", "webSocketURL": Object {}, @@ -184,6 +187,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object { "hostname": "my.host", @@ -227,6 +231,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object { "hostname": "my.host", @@ -270,6 +275,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object { "pathname": "/custom/path/", @@ -312,6 +318,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object { "pathname": "custom/path", @@ -354,6 +361,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "sockjs", "webSocketURL": Object {}, @@ -395,6 +403,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "ws", "webSocketURL": Object {}, @@ -436,6 +445,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "ws", "webSocketURL": Object {}, @@ -480,6 +490,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "ws", "webSocketURL": Object {}, @@ -524,6 +535,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "ws", "webSocketURL": Object {}, @@ -565,6 +577,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -607,6 +620,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -647,6 +661,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -687,6 +702,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -727,6 +743,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -767,6 +784,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -807,6 +825,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -849,6 +868,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -889,6 +909,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -929,6 +950,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -971,6 +993,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1013,6 +1036,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1055,6 +1079,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1095,6 +1120,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1146,6 +1172,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1197,6 +1224,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1248,6 +1276,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1288,6 +1317,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1316,6 +1346,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1356,6 +1387,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1396,6 +1428,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1436,6 +1469,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1477,6 +1511,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1517,6 +1552,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1555,6 +1591,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1595,6 +1632,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1637,6 +1675,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1677,6 +1716,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1717,6 +1757,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object { "password": "chuntaro", @@ -1760,6 +1801,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1800,6 +1842,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, diff --git a/test/server/__snapshots__/Server.test.js.snap.webpack5 b/test/server/__snapshots__/Server.test.js.snap.webpack5 index 5a6534675f..f74bcd0791 100644 --- a/test/server/__snapshots__/Server.test.js.snap.webpack5 +++ b/test/server/__snapshots__/Server.test.js.snap.webpack5 @@ -4,7 +4,7 @@ exports[`Server DevServerPlugin add hot option 1`] = ` Array [ Array [ "client", - "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws", + "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws&logging=warn", ], Array [ "node_modules", @@ -22,7 +22,7 @@ exports[`Server DevServerPlugin add hot-only option 1`] = ` Array [ Array [ "client", - "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws", + "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws&logging=warn", ], Array [ "node_modules", @@ -40,7 +40,7 @@ exports[`Server DevServerPlugin should create and run server with old parameters Array [ Array [ "client", - "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws", + "index.js?protocol=ws%3A&hostname=localhost&port=8124&pathname=%2Fws&logging=warn", ], Array [ "node_modules", @@ -63,6 +63,7 @@ Object { ], "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -103,6 +104,7 @@ Object { "allowedHosts": "all", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -143,6 +145,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "/path/to/custom/client/", "webSocketURL": Object {}, @@ -184,6 +187,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object { "hostname": "my.host", @@ -227,6 +231,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object { "hostname": "my.host", @@ -270,6 +275,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object { "pathname": "/custom/path/", @@ -312,6 +318,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object { "pathname": "custom/path", @@ -354,6 +361,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "sockjs", "webSocketURL": Object {}, @@ -395,6 +403,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "ws", "webSocketURL": Object {}, @@ -436,6 +445,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "ws", "webSocketURL": Object {}, @@ -480,6 +490,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "ws", "webSocketURL": Object {}, @@ -524,6 +535,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketTransport": "ws", "webSocketURL": Object {}, @@ -565,6 +577,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -607,6 +620,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -647,6 +661,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -687,6 +702,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -727,6 +743,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -767,6 +784,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -807,6 +825,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -849,6 +868,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -889,6 +909,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -929,6 +950,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -971,6 +993,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1013,6 +1036,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1055,6 +1079,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1095,6 +1120,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1146,6 +1172,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1197,6 +1224,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1248,6 +1276,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1288,6 +1317,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1316,6 +1346,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1356,6 +1387,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1396,6 +1428,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1436,6 +1469,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1477,6 +1511,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1517,6 +1552,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1555,6 +1591,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1595,6 +1632,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1637,6 +1675,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1677,6 +1716,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1717,6 +1757,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object { "password": "chuntaro", @@ -1760,6 +1801,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, }, @@ -1800,6 +1842,7 @@ Object { "allowedHosts": "auto", "bonjour": false, "client": Object { + "logging": "warn", "overlay": true, "webSocketURL": Object {}, },