@@ -617,7 +617,7 @@ exports[`options validate should throw an error on the "server" option with '{"t
617
617
exports[`options validate should throw an error on the "server" option with '{"type":"https","options":{"ca":true}}' value 1`] = `
618
618
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
619
619
- options.server should be one of these:
620
- \\"http\\" | \\"https\\" | \\"spdy\\" | non-empty string | object { type?, options? }
620
+ \\"http\\" | \\"https\\" | \\"spdy\\" | object { type?, options? }
621
621
-> Allows to set server and options (by default 'http').
622
622
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverserver
623
623
Details:
@@ -634,7 +634,7 @@ exports[`options validate should throw an error on the "server" option with '{"t
634
634
exports[`options validate should throw an error on the "server" option with '{"type":"https","options":{"cert":true}}' value 1`] = `
635
635
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
636
636
- options.server should be one of these:
637
- \\"http\\" | \\"https\\" | \\"spdy\\" | non-empty string | object { type?, options? }
637
+ \\"http\\" | \\"https\\" | \\"spdy\\" | object { type?, options? }
638
638
-> Allows to set server and options (by default 'http').
639
639
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverserver
640
640
Details:
@@ -651,7 +651,7 @@ exports[`options validate should throw an error on the "server" option with '{"t
651
651
exports[`options validate should throw an error on the "server" option with '{"type":"https","options":{"key":10}}' value 1`] = `
652
652
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
653
653
- options.server should be one of these:
654
- \\"http\\" | \\"https\\" | \\"spdy\\" | non-empty string | object { type?, options? }
654
+ \\"http\\" | \\"https\\" | \\"spdy\\" | object { type?, options? }
655
655
-> Allows to set server and options (by default 'http').
656
656
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverserver
657
657
Details:
@@ -674,7 +674,7 @@ exports[`options validate should throw an error on the "server" option with '{"t
674
674
exports[`options validate should throw an error on the "server" option with '{"type":"https","options":{"pfx":10}}' value 1`] = `
675
675
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
676
676
- options.server should be one of these:
677
- \\"http\\" | \\"https\\" | \\"spdy\\" | non-empty string | object { type?, options? }
677
+ \\"http\\" | \\"https\\" | \\"spdy\\" | object { type?, options? }
678
678
-> Allows to set server and options (by default 'http').
679
679
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverserver
680
680
Details:
@@ -694,6 +694,19 @@ exports[`options validate should throw an error on the "server" option with '{"t
694
694
-> Request for an SSL certificate."
695
695
`;
696
696
697
+ exports[`options validate should throw an error on the "server" option with 'invalid' value 1`] = `
698
+ "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
699
+ - options.server should be one of these:
700
+ \\"http\\" | \\"https\\" | \\"spdy\\" | object { type?, options? }
701
+ -> Allows to set server and options (by default 'http').
702
+ -> Read more at https://webpack.js.org/configuration/dev-server/#devserverserver
703
+ Details:
704
+ * options.server should be one of these:
705
+ \\"http\\" | \\"https\\" | \\"spdy\\"
706
+ * options.server should be an object:
707
+ object { type?, options? }"
708
+ `;
709
+
697
710
exports[`options validate should throw an error on the "static" option with '' value 1`] = `
698
711
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
699
712
- options.static should be a non-empty string."
0 commit comments