Skip to content

Commit 2a822f2

Browse files
committed
test: update snaps
1 parent 845e092 commit 2a822f2

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ exports[`options validate should throw an error on the "bonjour" option with ''
6969
exports[`options validate should throw an error on the "client" option with '{"logging":"silent"}' value 1`] = `
7070
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
7171
- options.client.logging should be one of these:
72-
\\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\""
72+
\\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\"
73+
-> Read more at https://webpack.js.org/configuration/dev-server/#logging"
7374
`;
7475

7576
exports[`options validate should throw an error on the "client" option with '{"logging":"whoops!"}' value 1`] = `
7677
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
7778
- options.client.logging should be one of these:
78-
\\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\""
79+
\\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\"
80+
-> Read more at https://webpack.js.org/configuration/dev-server/#logging"
7981
`;
8082

8183
exports[`options validate should throw an error on the "client" option with '{"overlay":""}' value 1`] = `
@@ -90,6 +92,7 @@ exports[`options validate should throw an error on the "client" option with '{"o
9092
Details:
9193
* options.client.overlay should be a boolean.
9294
-> Enables a full-screen overlay in the browser when there are compiler errors or warnings.
95+
-> Read more at https://webpack.js.org/configuration/dev-server/#overlay
9396
* options.client.overlay should be an object:
9497
object { errors?, warnings? }"
9598
`;
@@ -115,7 +118,8 @@ exports[`options validate should throw an error on the "client" option with '{"o
115118
exports[`options validate should throw an error on the "client" option with '{"progress":""}' value 1`] = `
116119
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
117120
- options.client.progress should be a boolean.
118-
-> Prints compilation progress in percentage in the browser."
121+
-> Prints compilation progress in percentage in the browser.
122+
-> Read more at https://webpack.js.org/configuration/dev-server/#progress"
119123
`;
120124

121125
exports[`options validate should throw an error on the "client" option with '{"unknownOption":true}' value 1`] = `
@@ -134,6 +138,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
134138
* options.client.webSocketTransport should be one of these:
135139
\\"sockjs\\" | \\"ws\\" | non-empty string
136140
-> Allows to set custom web socket transport to communicate with dev server.
141+
-> Read more at https://webpack.js.org/configuration/dev-server/#websockettransport
137142
Details:
138143
* options.client.webSocketTransport should be one of these:
139144
\\"sockjs\\" | \\"ws\\"

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ exports[`options validate should throw an error on the "bonjour" option with ''
6969
exports[`options validate should throw an error on the "client" option with '{"logging":"silent"}' value 1`] = `
7070
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
7171
- options.client.logging should be one of these:
72-
\\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\""
72+
\\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\"
73+
-> Read more at https://webpack.js.org/configuration/dev-server/#logging"
7374
`;
7475

7576
exports[`options validate should throw an error on the "client" option with '{"logging":"whoops!"}' value 1`] = `
7677
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
7778
- options.client.logging should be one of these:
78-
\\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\""
79+
\\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\"
80+
-> Read more at https://webpack.js.org/configuration/dev-server/#logging"
7981
`;
8082

8183
exports[`options validate should throw an error on the "client" option with '{"overlay":""}' value 1`] = `
@@ -90,6 +92,7 @@ exports[`options validate should throw an error on the "client" option with '{"o
9092
Details:
9193
* options.client.overlay should be a boolean.
9294
-> Enables a full-screen overlay in the browser when there are compiler errors or warnings.
95+
-> Read more at https://webpack.js.org/configuration/dev-server/#overlay
9396
* options.client.overlay should be an object:
9497
object { errors?, warnings? }"
9598
`;
@@ -115,7 +118,8 @@ exports[`options validate should throw an error on the "client" option with '{"o
115118
exports[`options validate should throw an error on the "client" option with '{"progress":""}' value 1`] = `
116119
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
117120
- options.client.progress should be a boolean.
118-
-> Prints compilation progress in percentage in the browser."
121+
-> Prints compilation progress in percentage in the browser.
122+
-> Read more at https://webpack.js.org/configuration/dev-server/#progress"
119123
`;
120124

121125
exports[`options validate should throw an error on the "client" option with '{"unknownOption":true}' value 1`] = `
@@ -134,6 +138,7 @@ exports[`options validate should throw an error on the "client" option with '{"w
134138
* options.client.webSocketTransport should be one of these:
135139
\\"sockjs\\" | \\"ws\\" | non-empty string
136140
-> Allows to set custom web socket transport to communicate with dev server.
141+
-> Read more at https://webpack.js.org/configuration/dev-server/#websockettransport
137142
Details:
138143
* options.client.webSocketTransport should be one of these:
139144
\\"sockjs\\" | \\"ws\\"

0 commit comments

Comments
 (0)