Skip to content

Commit d9e27cc

Browse files
test: update
1 parent 1444488 commit d9e27cc

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
172172
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
173173
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
174174
- options.client.webSocketURL should be one of these:
175-
non-empty string | object { host?, path?, username?, password?, port?, protocol? }
175+
non-empty string | object { host?, path?, password?, port?, protocol?, username? }
176176
-> 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).
177177
Details:
178178
* options.client.webSocketURL.port should be one of these:
@@ -186,13 +186,13 @@ exports[`options validate should throw an error on the "client" option with '{"w
186186
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"username":123,"password":976}}' value 1`] = `
187187
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
188188
- options.client.webSocketURL should be one of these:
189-
non-empty string | object { host?, path?, username?, password?, port?, protocol? }
189+
non-empty string | object { host?, path?, password?, port?, protocol?, username? }
190190
-> 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).
191191
Details:
192-
* options.client.webSocketURL.username should be a string.
193-
-> Tells clients connected to devServer to use the provided username to authenticate.
194192
* options.client.webSocketURL.password should be a string.
195-
-> Tells clients connected to devServer to use the provided password to authenticate."
193+
-> Tells clients connected to devServer to use the provided password to authenticate.
194+
* options.client.webSocketURL.username should be a string.
195+
-> Tells clients connected to devServer to use the provided username to authenticate."
196196
`;
197197

198198
exports[`options validate should throw an error on the "client" option with 'whoops!' value 1`] = `

test/cli/__snapshots__/cli.test.js.snap.webpack5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ Options:
7272
--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).
7373
--client-web-socket-url-host <value> Tells clients connected to devServer to use the provided host.
7474
--client-web-socket-url-path <value> Tells clients connected to devServer to use the provided path to connect.
75+
--client-web-socket-url-password <value> Tells clients connected to devServer to use the provided password to authenticate.
7576
--client-web-socket-url-port <value> Tells clients connected to devServer to use the provided port.
7677
--client-web-socket-url-protocol <value> Tells clients connected to devServer to use the provided protocol.
78+
--client-web-socket-url-username <value> Tells clients connected to devServer to use the provided username to authenticate.
7779
--compress Enables gzip compression for everything served. https://webpack.js.org/configuration/dev-server/#devservercompress
7880
--no-compress Negative 'compress' option.
7981
--history-api-fallback Allows to proxy requests through a specified index page (by default 'index.html'), useful for Single Page Applications that utilise the HTML5 History API. https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback

test/cli/cli.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('CLI', () => {
4040
);
4141
});
4242

43-
describe.only('help', () => {
43+
describe('help', () => {
4444
(isMacOS ? it.skip : it)('should generate correct cli flags', async () => {
4545
const { exitCode, stdout } = await testBin(['--help']);
4646

test/server/__snapshots__/Server.test.js.snap.webpack5

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`Server DevServerPlugin add hot option 1`] = `
44
Array [
55
Array [
66
"client",
7-
"index.js?ws%3A%2F%2Flocalhost%3A8104%2Fws",
7+
"index.js?ws%3A%2F%2Flocalhost%3A8105%2Fws",
88
],
99
Array [
1010
"node_modules",
@@ -22,7 +22,7 @@ exports[`Server DevServerPlugin add hot-only option 1`] = `
2222
Array [
2323
Array [
2424
"client",
25-
"index.js?ws%3A%2F%2Flocalhost%3A8104%2Fws",
25+
"index.js?ws%3A%2F%2Flocalhost%3A8105%2Fws",
2626
],
2727
Array [
2828
"node_modules",
@@ -40,7 +40,7 @@ exports[`Server DevServerPlugin should create and run server with old parameters
4040
Array [
4141
Array [
4242
"client",
43-
"index.js?ws%3A%2F%2Flocalhost%3A8104%2Fws",
43+
"index.js?ws%3A%2F%2Flocalhost%3A8105%2Fws",
4444
],
4545
Array [
4646
"node_modules",
@@ -54,4 +54,4 @@ Array [
5454
]
5555
`;
5656

57-
exports[`Server getFreePort should throws the error when the port isn't found 1`] = `"busy"`;
57+
exports[`Server getFreePort should throws the error when the port isn't found 1`] = `"listen EADDRINUSE: address already in use :::8080"`;

test/server/servers/__snapshots__/WebsocketServer.test.js.snap.webpack5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`WebsocketServer should receive connection, send message, and close client 1`] = `"localhost:8130"`;
3+
exports[`WebsocketServer should receive connection, send message, and close client 1`] = `"localhost:8131"`;
44

55
exports[`WebsocketServer should receive connection, send message, and close client 2`] = `
66
Array [

0 commit comments

Comments
 (0)