@@ -107,14 +107,34 @@ exports[`options validate should throw an error on the "client" option with '{"o
107
107
108
108
exports[`options validate should throw an error on the "client" option with '{"overlay":{"errors":""}}' value 1`] = `
109
109
"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."
112
122
`;
113
123
114
124
exports[`options validate should throw an error on the "client" option with '{"overlay":{"warnings":""}}' value 1`] = `
115
125
"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."
118
138
`;
119
139
120
140
exports[`options validate should throw an error on the "client" option with '{"progress":""}' value 1`] = `
0 commit comments