@@ -517,26 +517,36 @@ exports[`options validate should throw an error on the "port" option with '' val
517
517
- options.port should be a non-empty string."
518
518
`;
519
519
520
+ exports[`options validate should throw an error on the "port" option with '-1' value 1`] = `
521
+ "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
522
+ - options.port should be >= 0 and <= 65535."
523
+ `;
524
+
525
+ exports[`options validate should throw an error on the "port" option with '65536' value 1`] = `
526
+ "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
527
+ - options.port should be >= 0 and <= 65535."
528
+ `;
529
+
520
530
exports[`options validate should throw an error on the "port" option with 'false' value 1`] = `
521
531
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
522
532
- options.port should be one of these:
523
- number | non-empty string | \\"auto\\"
533
+ number (should be >= 0 and <= 65535) | non-empty string | \\"auto\\"
524
534
-> Allows to specify a port to use.
525
535
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverport
526
536
Details:
527
- * options.port should be a number.
537
+ * options.port should be a number (should be >= 0 and <= 65535) .
528
538
* options.port should be a non-empty string.
529
539
* options.port should be \\"auto\\"."
530
540
`;
531
541
532
542
exports[`options validate should throw an error on the "port" option with 'null' value 1`] = `
533
543
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
534
544
- options.port should be one of these:
535
- number | non-empty string | \\"auto\\"
545
+ number (should be >= 0 and <= 65535) | non-empty string | \\"auto\\"
536
546
-> Allows to specify a port to use.
537
547
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverport
538
548
Details:
539
- * options.port should be a number.
549
+ * options.port should be a number (should be >= 0 and <= 65535) .
540
550
* options.port should be a non-empty string.
541
551
* options.port should be \\"auto\\"."
542
552
`;
0 commit comments