2
2
3
3
exports[`options validate should throw an error on the "allowedHosts" option with '[""]' value 1`] = `
4
4
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
5
- - options.allowedHosts[0] should be an non-empty string."
5
+ - options.allowedHosts[0] should be a non-empty string."
6
6
`;
7
7
8
8
exports[`options validate should throw an error on the "allowedHosts" option with '[]' value 1`] = `
9
9
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
10
- - options.allowedHosts should be an non-empty array."
10
+ - options.allowedHosts should be a non-empty array."
11
11
`;
12
12
13
13
exports[`options validate should throw an error on the "allowedHosts" option with '123' value 1`] = `
@@ -135,7 +135,7 @@ exports[`options validate should throw an error on the "client" option with '{"u
135
135
136
136
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"hostname":""}}' value 1`] = `
137
137
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
138
- - options.client.webSocketURL.hostname should be an non-empty string.
138
+ - options.client.webSocketURL.hostname should be a non-empty string.
139
139
-> Tells clients connected to devServer to use the provided hostname."
140
140
`;
141
141
@@ -153,7 +153,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
153
153
154
154
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":""}}' value 1`] = `
155
155
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
156
- - options.client.webSocketURL.port should be an non-empty string."
156
+ - options.client.webSocketURL.port should be a non-empty string."
157
157
`;
158
158
159
159
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
@@ -242,7 +242,7 @@ exports[`options validate should throw an error on the "historyApiFallback" opti
242
242
243
243
exports[`options validate should throw an error on the "host" option with '' value 1`] = `
244
244
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
245
- - options.host should be an non-empty string.
245
+ - options.host should be a non-empty string.
246
246
-> Allows to specify a hostname to use. https://webpack.js.org/configuration/dev-server/#devserverhost"
247
247
`;
248
248
@@ -410,7 +410,7 @@ exports[`options validate should throw an error on the "onListening" option with
410
410
411
411
exports[`options validate should throw an error on the "open" option with '' value 1`] = `
412
412
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
413
- - options.open should be an non-empty string."
413
+ - options.open should be a non-empty string."
414
414
`;
415
415
416
416
exports[`options validate should throw an error on the "open" option with '{"app":true}' value 1`] = `
@@ -451,7 +451,7 @@ exports[`options validate should throw an error on the "open" option with '{"tar
451
451
452
452
exports[`options validate should throw an error on the "port" option with '' value 1`] = `
453
453
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
454
- - options.port should be an non-empty string."
454
+ - options.port should be a non-empty string."
455
455
`;
456
456
457
457
exports[`options validate should throw an error on the "port" option with 'false' value 1`] = `
@@ -502,7 +502,7 @@ exports[`options validate should throw an error on the "proxy" option with 'func
502
502
503
503
exports[`options validate should throw an error on the "static" option with '' value 1`] = `
504
504
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
505
- - options.static should be an non-empty string."
505
+ - options.static should be a non-empty string."
506
506
`;
507
507
508
508
exports[`options validate should throw an error on the "static" option with '{"directory":false}' value 1`] = `
0 commit comments