@@ -83,7 +83,7 @@ exports[`options validate should throw an error on the "client" option with '{"l
8383exports[`options validate should throw an error on the "client" option with '{"overlay":""}' value 1`] = `
8484"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
8585 - options.client should be one of these:
86- false | object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }
86+ false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
8787 -> Allows to specify options for client script in the browser or disable client script.
8888 -> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
8989 Details:
@@ -122,16 +122,32 @@ exports[`options validate should throw an error on the "client" option with '{"p
122122 -> Read more at https://webpack.js.org/configuration/dev-server/#progress"
123123`;
124124
125+ exports[`options validate should throw an error on the "client" option with '{"reconnect":""}' value 1`] = `
126+ "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
127+ - options.client should be one of these:
128+ false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
129+ -> Allows to specify options for client script in the browser or disable client script.
130+ -> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
131+ Details:
132+ * options.client.reconnect should be one of these:
133+ boolean | number (should be >= 0)
134+ -> Tells dev-server the number of times it should try to reconnect the client.
135+ -> Read more at https://webpack.js.org/configuration/dev-server/#reconnect
136+ Details:
137+ * options.client.reconnect should be a boolean.
138+ * options.client.reconnect should be a number (should be >= 0)."
139+ `;
140+
125141exports[`options validate should throw an error on the "client" option with '{"unknownOption":true}' value 1`] = `
126142"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
127143 - options.client has an unknown property 'unknownOption'. These properties are valid:
128- object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }"
144+ object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }"
129145`;
130146
131147exports[`options validate should throw an error on the "client" option with '{"webSocketTransport":true}' value 1`] = `
132148"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
133149 - options.client should be one of these:
134- false | object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }
150+ false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
135151 -> Allows to specify options for client script in the browser or disable client script.
136152 -> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
137153 Details:
@@ -171,7 +187,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
171187exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
172188"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
173189 - options.client should be one of these:
174- false | object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }
190+ false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
175191 -> Allows to specify options for client script in the browser or disable client script.
176192 -> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
177193 Details:
@@ -186,7 +202,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
186202exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"username":123,"password":976}}' value 1`] = `
187203"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
188204 - options.client should be one of these:
189- false | object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }
205+ false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
190206 -> Allows to specify options for client script in the browser or disable client script.
191207 -> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
192208 Details:
@@ -199,13 +215,13 @@ exports[`options validate should throw an error on the "client" option with '{"w
199215exports[`options validate should throw an error on the "client" option with 'whoops!' value 1`] = `
200216"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
201217 - options.client should be one of these:
202- false | object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }
218+ false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
203219 -> Allows to specify options for client script in the browser or disable client script.
204220 -> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
205221 Details:
206222 * options.client should be false.
207223 * options.client should be an object:
208- object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }"
224+ object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }"
209225`;
210226
211227exports[`options validate should throw an error on the "compress" option with '' value 1`] = `
0 commit comments