Skip to content

Commit 2dcb797

Browse files
committed
fix: update snapshot
1 parent f7b1747 commit 2dcb797

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

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

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,34 @@ exports[`options validate should throw an error on the "client" option with '{"o
107107

108108
exports[`options validate should throw an error on the "client" option with '{"overlay":{"errors":""}}' value 1`] = `
109109
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
110-
- options.client.overlay.errors should be a boolean.
111-
-> Enables a full-screen overlay in the browser when there are compiler errors."
110+
- options.client should be one of these:
111+
false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
112+
-> Allows to specify options for client script in the browser or disable client script.
113+
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
114+
Details:
115+
* options.client.overlay.errors should be one of these:
116+
boolean | function
117+
Details:
118+
* options.client.overlay.errors should be a boolean.
119+
-> Enables a full-screen overlay in the browser when there are compiler errors.
120+
* options.client.overlay.errors should be an instance of function.
121+
-> Filter compiler errors. Return true to include and return false to exclude."
112122
`;
113123

114124
exports[`options validate should throw an error on the "client" option with '{"overlay":{"warnings":""}}' value 1`] = `
115125
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
116-
- options.client.overlay.warnings should be a boolean.
117-
-> Enables a full-screen overlay in the browser when there are compiler warnings."
126+
- options.client should be one of these:
127+
false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
128+
-> Allows to specify options for client script in the browser or disable client script.
129+
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
130+
Details:
131+
* options.client.overlay.warnings should be one of these:
132+
boolean | function
133+
Details:
134+
* options.client.overlay.warnings should be a boolean.
135+
-> Enables a full-screen overlay in the browser when there are compiler warnings.
136+
* options.client.overlay.warnings should be an instance of function.
137+
-> Filter compiler warnings. Return true to include and return false to exclude."
118138
`;
119139

120140
exports[`options validate should throw an error on the "client" option with '{"progress":""}' value 1`] = `

0 commit comments

Comments
 (0)