|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
| 3 | +exports[`options validate should throw an error on the "allowedHosts" option with '123' value 1`] = ` |
| 4 | +"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. |
| 5 | + - configuration.allowedHosts should be one of these: |
| 6 | + \\"auto\\" | \\"all\\" | non-empty string | [non-empty string, ...] (should not have fewer than 1 item) |
| 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 | + Details: |
| 9 | + * configuration.allowedHosts should be one of these: |
| 10 | + \\"auto\\" | \\"all\\" |
| 11 | + * configuration.allowedHosts should be a non-empty string. |
| 12 | + * configuration.allowedHosts should be an array: |
| 13 | + [non-empty string, ...] (should not have fewer than 1 item)" |
| 14 | +`; |
| 15 | + |
| 16 | +exports[`options validate should throw an error on the "allowedHosts" option with 'false' value 1`] = ` |
| 17 | +"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. |
| 18 | + - configuration.allowedHosts should be one of these: |
| 19 | + \\"auto\\" | \\"all\\" | non-empty string | [non-empty string, ...] (should not have fewer than 1 item) |
| 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 | + Details: |
| 22 | + * configuration.allowedHosts should be one of these: |
| 23 | + \\"auto\\" | \\"all\\" |
| 24 | + * configuration.allowedHosts should be a non-empty string. |
| 25 | + * configuration.allowedHosts should be an array: |
| 26 | + [non-empty string, ...] (should not have fewer than 1 item)" |
| 27 | +`; |
| 28 | + |
| 29 | +exports[`options validate should throw an error on the "allowedHosts" option with 'true' value 1`] = ` |
| 30 | +"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. |
| 31 | + - configuration.allowedHosts should be one of these: |
| 32 | + \\"auto\\" | \\"all\\" | non-empty string | [non-empty string, ...] (should not have fewer than 1 item) |
| 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 | + Details: |
| 35 | + * configuration.allowedHosts should be one of these: |
| 36 | + \\"auto\\" | \\"all\\" |
| 37 | + * configuration.allowedHosts should be a non-empty string. |
| 38 | + * configuration.allowedHosts should be an array: |
| 39 | + [non-empty string, ...] (should not have fewer than 1 item)" |
| 40 | +`; |
| 41 | + |
3 | 42 | exports[`options validate should throw an error on the "bonjour" option with '' value 1`] = `
|
4 | 43 | "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
|
5 | 44 | - configuration.bonjour should be one of these:
|
@@ -141,22 +180,6 @@ exports[`options validate should throw an error on the "devMiddleware" option wi
|
141 | 180 | -> Provide options to webpack-dev-middleware which handles webpack assets. https://webpack.js.org/configuration/dev-server/#devserverdevmiddleware"
|
142 | 181 | `;
|
143 | 182 |
|
144 |
| -exports[`options validate should throw an error on the "firewall" option with '' value 1`] = ` |
145 |
| -"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. |
146 |
| - - configuration.firewall should be one of these: |
147 |
| - boolean | [string, ...] (should not have fewer than 1 item) |
148 |
| - -> Defines routes which are enabled by default, on by default and allows localhost. https://webpack.js.org/configuration/dev-server/#devserverfirewall |
149 |
| - Details: |
150 |
| - * configuration.firewall should be a boolean. |
151 |
| - * configuration.firewall should be an array: |
152 |
| - [string, ...] (should not have fewer than 1 item)" |
153 |
| -`; |
154 |
| - |
155 |
| -exports[`options validate should throw an error on the "firewall" option with '[]' value 1`] = ` |
156 |
| -"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. |
157 |
| - - configuration.firewall should be an non-empty array." |
158 |
| -`; |
159 |
| - |
160 | 183 | exports[`options validate should throw an error on the "headers" option with '1' value 1`] = `
|
161 | 184 | "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
|
162 | 185 | - configuration.headers should be one of these:
|
|
0 commit comments