@@ -414,25 +414,30 @@ exports[`options validate should throw an error on the "open" option with '{"tar
414
414
* configuration.open.target should be a non-empty string."
415
415
`;
416
416
417
+ exports[`options validate should throw an error on the "port" option with '' value 1`] = `
418
+ "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
419
+ - configuration.port should be an non-empty string."
420
+ `;
421
+
417
422
exports[`options validate should throw an error on the "port" option with 'false' value 1`] = `
418
423
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
419
424
- configuration.port should be one of these:
420
- number | string | \\"auto\\"
425
+ number | non-empty string | \\"auto\\"
421
426
-> Specify a port number to listen for requests on. https://webpack.js.org/configuration/dev-server/#devserverport
422
427
Details:
423
428
* configuration.port should be a number.
424
- * configuration.port should be a string.
429
+ * configuration.port should be a non-empty string.
425
430
* configuration.port should be \\"auto\\"."
426
431
`;
427
432
428
433
exports[`options validate should throw an error on the "port" option with 'null' value 1`] = `
429
434
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
430
435
- configuration.port should be one of these:
431
- number | string | \\"auto\\"
436
+ number | non-empty string | \\"auto\\"
432
437
-> Specify a port number to listen for requests on. https://webpack.js.org/configuration/dev-server/#devserverport
433
438
Details:
434
439
* configuration.port should be a number.
435
- * configuration.port should be a string.
440
+ * configuration.port should be a non-empty string.
436
441
* configuration.port should be \\"auto\\"."
437
442
`;
438
443
0 commit comments