You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-> By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS. https://webpack.js.org/configuration/dev-server/#devserverhttps
194
+
Details:
195
+
* configuration.https.cacert should be one of these:
196
+
string | Buffer
197
+
-> Path to an SSL CA certificate.
198
+
Details:
199
+
* configuration.https.cacert should be a string.
200
+
* configuration.https.cacert should be an instance of Buffer."
201
+
`;
202
+
203
+
exports[`options validate should throw an error on the "https" option with '{"cert":true}' value 1`] = `
204
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
-> By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS. https://webpack.js.org/configuration/dev-server/#devserverhttps
208
+
Details:
209
+
* configuration.https.cert should be one of these:
210
+
string | Buffer
211
+
-> Path to an SSL certificate.
212
+
Details:
213
+
* configuration.https.cert should be a string.
214
+
* configuration.https.cert should be an instance of Buffer."
215
+
`;
216
+
189
217
exports[`options validate should throw an error on the "https" option with '{"foo":"bar"}' value 1`] = `
190
218
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
191
219
- configuration.https has an unknown property 'foo'. These properties are valid:
-> By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS. https://webpack.js.org/configuration/dev-server/#devserverhttps
228
+
Details:
229
+
* configuration.https.key should be one of these:
230
+
string | Buffer
231
+
-> Path to an SSL key.
232
+
Details:
233
+
* configuration.https.key should be a string.
234
+
* configuration.https.key should be an instance of Buffer."
235
+
`;
236
+
237
+
exports[`options validate should throw an error on the "https" option with '{"passphrase":false}' value 1`] = `
238
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
239
+
- configuration.https.passphrase should be a string.
240
+
-> Passphrase for a pfx file."
241
+
`;
242
+
243
+
exports[`options validate should throw an error on the "https" option with '{"pfx":10}' value 1`] = `
244
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
-> By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS. https://webpack.js.org/configuration/dev-server/#devserverhttps
248
+
Details:
249
+
* configuration.https.pfx should be one of these:
250
+
string | Buffer
251
+
-> Path to an SSL pfx file.
252
+
Details:
253
+
* configuration.https.pfx should be a string.
254
+
* configuration.https.pfx should be an instance of Buffer."
255
+
`;
256
+
257
+
exports[`options validate should throw an error on the "https" option with '{"requestCert":"test"}' value 1`] = `
258
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
259
+
- configuration.https.requestCert should be a boolean.
260
+
-> Request for an SSL certificate."
261
+
`;
262
+
195
263
exports[`options validate should throw an error on the "onAfterSetupMiddleware" option with 'false' value 1`] = `
196
264
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
197
265
- configuration.onAfterSetupMiddleware should be an instance of function.
-> By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS. https://webpack.js.org/configuration/dev-server/#devserverhttps
194
+
Details:
195
+
* configuration.https.cacert should be one of these:
196
+
string | Buffer
197
+
-> Path to an SSL CA certificate.
198
+
Details:
199
+
* configuration.https.cacert should be a string.
200
+
* configuration.https.cacert should be an instance of Buffer."
201
+
`;
202
+
203
+
exports[`options validate should throw an error on the "https" option with '{"cert":true}' value 1`] = `
204
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
-> By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS. https://webpack.js.org/configuration/dev-server/#devserverhttps
208
+
Details:
209
+
* configuration.https.cert should be one of these:
210
+
string | Buffer
211
+
-> Path to an SSL certificate.
212
+
Details:
213
+
* configuration.https.cert should be a string.
214
+
* configuration.https.cert should be an instance of Buffer."
215
+
`;
216
+
189
217
exports[`options validate should throw an error on the "https" option with '{"foo":"bar"}' value 1`] = `
190
218
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
191
219
- configuration.https has an unknown property 'foo'. These properties are valid:
-> By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS. https://webpack.js.org/configuration/dev-server/#devserverhttps
228
+
Details:
229
+
* configuration.https.key should be one of these:
230
+
string | Buffer
231
+
-> Path to an SSL key.
232
+
Details:
233
+
* configuration.https.key should be a string.
234
+
* configuration.https.key should be an instance of Buffer."
235
+
`;
236
+
237
+
exports[`options validate should throw an error on the "https" option with '{"passphrase":false}' value 1`] = `
238
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
239
+
- configuration.https.passphrase should be a string.
240
+
-> Passphrase for a pfx file."
241
+
`;
242
+
243
+
exports[`options validate should throw an error on the "https" option with '{"pfx":10}' value 1`] = `
244
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
-> By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS. https://webpack.js.org/configuration/dev-server/#devserverhttps
248
+
Details:
249
+
* configuration.https.pfx should be one of these:
250
+
string | Buffer
251
+
-> Path to an SSL pfx file.
252
+
Details:
253
+
* configuration.https.pfx should be a string.
254
+
* configuration.https.pfx should be an instance of Buffer."
255
+
`;
256
+
257
+
exports[`options validate should throw an error on the "https" option with '{"requestCert":"test"}' value 1`] = `
258
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
259
+
- configuration.https.requestCert should be a boolean.
260
+
-> Request for an SSL certificate."
261
+
`;
262
+
195
263
exports[`options validate should throw an error on the "onAfterSetupMiddleware" option with 'false' value 1`] = `
196
264
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
197
265
- configuration.onAfterSetupMiddleware should be an instance of function.
0 commit comments