Skip to content

Commit 8477269

Browse files
test: update snapshots
1 parent bbe5578 commit 8477269

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

test/__snapshots__/validate-options.test.js.snap.webpack4

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,40 @@
33
exports[`options validate should throw an error on the "allowedHosts" option with '123' value 1`] = `
44
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
55
- 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
77
-> 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
88
Details:
9+
* options.allowedHosts should be an array:
10+
[non-empty string, ...] (should not have fewer than 1 item)
911
* options.allowedHosts should be one of these:
1012
\\"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."
1414
`;
1515

1616
exports[`options validate should throw an error on the "allowedHosts" option with 'false' value 1`] = `
1717
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
1818
- 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
2020
-> 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
2121
Details:
22+
* options.allowedHosts should be an array:
23+
[non-empty string, ...] (should not have fewer than 1 item)
2224
* options.allowedHosts should be one of these:
2325
\\"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."
2727
`;
2828

2929
exports[`options validate should throw an error on the "allowedHosts" option with 'true' value 1`] = `
3030
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
3131
- 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
3333
-> 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
3434
Details:
35+
* options.allowedHosts should be an array:
36+
[non-empty string, ...] (should not have fewer than 1 item)
3537
* options.allowedHosts should be one of these:
3638
\\"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."
4040
`;
4141

4242
exports[`options validate should throw an error on the "bonjour" option with '' value 1`] = `

test/__snapshots__/validate-options.test.js.snap.webpack5

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,40 @@
33
exports[`options validate should throw an error on the "allowedHosts" option with '123' value 1`] = `
44
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
55
- 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
77
-> 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
88
Details:
9+
* options.allowedHosts should be an array:
10+
[non-empty string, ...] (should not have fewer than 1 item)
911
* options.allowedHosts should be one of these:
1012
\\"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."
1414
`;
1515

1616
exports[`options validate should throw an error on the "allowedHosts" option with 'false' value 1`] = `
1717
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
1818
- 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
2020
-> 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
2121
Details:
22+
* options.allowedHosts should be an array:
23+
[non-empty string, ...] (should not have fewer than 1 item)
2224
* options.allowedHosts should be one of these:
2325
\\"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."
2727
`;
2828

2929
exports[`options validate should throw an error on the "allowedHosts" option with 'true' value 1`] = `
3030
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
3131
- 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
3333
-> 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
3434
Details:
35+
* options.allowedHosts should be an array:
36+
[non-empty string, ...] (should not have fewer than 1 item)
3537
* options.allowedHosts should be one of these:
3638
\\"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."
4040
`;
4141

4242
exports[`options validate should throw an error on the "bonjour" option with '' value 1`] = `

0 commit comments

Comments
 (0)