Skip to content

Commit

Permalink
fix: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolm-kee committed May 5, 2023
1 parent f7b1747 commit 2dcb797
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions test/__snapshots__/validate-options.test.js.snap.webpack5
Expand Up @@ -107,14 +107,34 @@ exports[`options validate should throw an error on the "client" option with '{"o

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

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

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

0 comments on commit 2dcb797

Please sign in to comment.