|
3 | 3 | exports[`options validate should throw an error on the "allowedHosts" option with '123' 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 | 5 | - options.allowedHosts should be one of these:
|
6 |
| - \\"auto\\" | \\"all\\" | non-empty string | [non-empty string, ...] (should not have fewer than 1 item) |
| 6 | + [non-empty string, ...] (should not have fewer than 1 item) | \\"auto\\" | \\"all\\" | non-empty string |
7 | 7 | -> Defines routes which are enabled by default, on by default and allows localhost/value from the 'host' option/value from the 'client.webSocketURL' option. https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
|
8 | 8 | Details:
|
| 9 | + * options.allowedHosts should be an array: |
| 10 | + [non-empty string, ...] (should not have fewer than 1 item) |
9 | 11 | * options.allowedHosts should be one of these:
|
10 | 12 | \\"auto\\" | \\"all\\"
|
11 |
| - * options.allowedHosts should be a non-empty string. |
12 |
| - * options.allowedHosts should be an array: |
13 |
| - [non-empty string, ...] (should not have fewer than 1 item)" |
| 13 | + * options.allowedHosts should be a non-empty string." |
14 | 14 | `;
|
15 | 15 |
|
16 | 16 | exports[`options validate should throw an error on the "allowedHosts" option with 'false' value 1`] = `
|
17 | 17 | "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
|
18 | 18 | - options.allowedHosts should be one of these:
|
19 |
| - \\"auto\\" | \\"all\\" | non-empty string | [non-empty string, ...] (should not have fewer than 1 item) |
| 19 | + [non-empty string, ...] (should not have fewer than 1 item) | \\"auto\\" | \\"all\\" | non-empty string |
20 | 20 | -> Defines routes which are enabled by default, on by default and allows localhost/value from the 'host' option/value from the 'client.webSocketURL' option. https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
|
21 | 21 | Details:
|
| 22 | + * options.allowedHosts should be an array: |
| 23 | + [non-empty string, ...] (should not have fewer than 1 item) |
22 | 24 | * options.allowedHosts should be one of these:
|
23 | 25 | \\"auto\\" | \\"all\\"
|
24 |
| - * options.allowedHosts should be a non-empty string. |
25 |
| - * options.allowedHosts should be an array: |
26 |
| - [non-empty string, ...] (should not have fewer than 1 item)" |
| 26 | + * options.allowedHosts should be a non-empty string." |
27 | 27 | `;
|
28 | 28 |
|
29 | 29 | exports[`options validate should throw an error on the "allowedHosts" option with 'true' value 1`] = `
|
30 | 30 | "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
|
31 | 31 | - options.allowedHosts should be one of these:
|
32 |
| - \\"auto\\" | \\"all\\" | non-empty string | [non-empty string, ...] (should not have fewer than 1 item) |
| 32 | + [non-empty string, ...] (should not have fewer than 1 item) | \\"auto\\" | \\"all\\" | non-empty string |
33 | 33 | -> Defines routes which are enabled by default, on by default and allows localhost/value from the 'host' option/value from the 'client.webSocketURL' option. https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
|
34 | 34 | Details:
|
| 35 | + * options.allowedHosts should be an array: |
| 36 | + [non-empty string, ...] (should not have fewer than 1 item) |
35 | 37 | * options.allowedHosts should be one of these:
|
36 | 38 | \\"auto\\" | \\"all\\"
|
37 |
| - * options.allowedHosts should be a non-empty string. |
38 |
| - * options.allowedHosts should be an array: |
39 |
| - [non-empty string, ...] (should not have fewer than 1 item)" |
| 39 | + * options.allowedHosts should be a non-empty string." |
40 | 40 | `;
|
41 | 41 |
|
42 | 42 | exports[`options validate should throw an error on the "bonjour" option with '' value 1`] = `
|
|
0 commit comments