@@ -83,7 +83,7 @@ exports[`options validate should throw an error on the "client" option with '{"l
83
83
exports[`options validate should throw an error on the "client" option with '{"overlay":""}' value 1`] = `
84
84
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
85
85
- options.client should be one of these:
86
- false | object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }
86
+ false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
87
87
-> Allows to specify options for client script in the browser or disable client script.
88
88
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
89
89
Details:
@@ -122,16 +122,32 @@ exports[`options validate should throw an error on the "client" option with '{"p
122
122
-> Read more at https://webpack.js.org/configuration/dev-server/#progress"
123
123
`;
124
124
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
+
125
141
exports[`options validate should throw an error on the "client" option with '{"unknownOption":true}' value 1`] = `
126
142
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
127
143
- 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? }"
129
145
`;
130
146
131
147
exports[`options validate should throw an error on the "client" option with '{"webSocketTransport":true}' value 1`] = `
132
148
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
133
149
- options.client should be one of these:
134
- false | object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }
150
+ false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
135
151
-> Allows to specify options for client script in the browser or disable client script.
136
152
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
137
153
Details:
@@ -171,7 +187,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
171
187
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
172
188
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
173
189
- options.client should be one of these:
174
- false | object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }
190
+ false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
175
191
-> Allows to specify options for client script in the browser or disable client script.
176
192
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
177
193
Details:
@@ -186,7 +202,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
186
202
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"username":123,"password":976}}' value 1`] = `
187
203
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
188
204
- options.client should be one of these:
189
- false | object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }
205
+ false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
190
206
-> Allows to specify options for client script in the browser or disable client script.
191
207
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
192
208
Details:
@@ -199,13 +215,13 @@ exports[`options validate should throw an error on the "client" option with '{"w
199
215
exports[`options validate should throw an error on the "client" option with 'whoops!' value 1`] = `
200
216
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
201
217
- options.client should be one of these:
202
- false | object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }
218
+ false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
203
219
-> Allows to specify options for client script in the browser or disable client script.
204
220
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
205
221
Details:
206
222
* options.client should be false.
207
223
* options.client should be an object:
208
- object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }"
224
+ object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }"
209
225
`;
210
226
211
227
exports[`options validate should throw an error on the "compress" option with '' value 1`] = `
0 commit comments