From 2dcb797eccd36e11f49b39ba9b402f2106dc7329 Mon Sep 17 00:00:00 2001 From: Malcolm Kee Date: Fri, 5 May 2023 21:18:57 +1000 Subject: [PATCH] fix: update snapshot --- .../validate-options.test.js.snap.webpack5 | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/test/__snapshots__/validate-options.test.js.snap.webpack5 b/test/__snapshots__/validate-options.test.js.snap.webpack5 index 2a5ed5e47d..887634ff91 100644 --- a/test/__snapshots__/validate-options.test.js.snap.webpack5 +++ b/test/__snapshots__/validate-options.test.js.snap.webpack5 @@ -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`] = `