diff --git a/lib/options.json b/lib/options.json index ac7906848b..602850e698 100644 --- a/lib/options.json +++ b/lib/options.json @@ -16,10 +16,6 @@ }, "publicPath": { "anyOf": [ - { - "type": "string", - "minLength": 1 - }, { "type": "array", "items": { @@ -27,6 +23,10 @@ "minLength": 1 }, "minItems": 1 + }, + { + "type": "string", + "minLength": 1 } ], "description": "The bundled files will be available in the browser under this path." @@ -74,13 +74,6 @@ "properties": { "target": { "anyOf": [ - { - "type": "boolean" - }, - { - "type": "string", - "minLength": 1 - }, { "type": "array", "items": { @@ -88,16 +81,19 @@ "minLength": 1 }, "minItems": 1 + }, + { + "type": "boolean" + }, + { + "type": "string", + "minLength": 1 } ], "description": "Open specified route in browser." }, "app": { "anyOf": [ - { - "type": "string", - "minLength": 1 - }, { "type": "array", "items": { @@ -105,6 +101,10 @@ "minLength": 1 }, "minItems": 1 + }, + { + "type": "string", + "minLength": 1 } ], "description": "Open specified browser." @@ -120,16 +120,16 @@ "properties": { "paths": { "anyOf": [ - { - "type": "string", - "minLength": 1 - }, { "type": "array", "items": { "type": "string", "minLength": 1 } + }, + { + "type": "string", + "minLength": 1 } ] }, @@ -457,15 +457,6 @@ }, "open": { "anyOf": [ - { - "$ref": "#/definitions/OpenBoolean" - }, - { - "$ref": "#/definitions/OpenString" - }, - { - "$ref": "#/definitions/OpenObject" - }, { "type": "array", "items": { @@ -479,6 +470,15 @@ ] }, "minItems": 1 + }, + { + "$ref": "#/definitions/OpenBoolean" + }, + { + "$ref": "#/definitions/OpenString" + }, + { + "$ref": "#/definitions/OpenObject" } ], "description": "Tells dev-server to open the browser after server had been started. Set it to true to open your default browser. https://webpack.js.org/configuration/dev-server/#devserveropen" @@ -529,15 +529,6 @@ }, "static": { "anyOf": [ - { - "type": "boolean" - }, - { - "$ref": "#/definitions/StaticString" - }, - { - "$ref": "#/definitions/StaticObject" - }, { "type": "array", "items": { @@ -551,18 +542,21 @@ ] }, "minItems": 1 + }, + { + "type": "boolean" + }, + { + "$ref": "#/definitions/StaticString" + }, + { + "$ref": "#/definitions/StaticObject" } ], "description": "It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic" }, "watchFiles": { "anyOf": [ - { - "$ref": "#/definitions/WatchFilesString" - }, - { - "$ref": "#/definitions/WatchFilesObject" - }, { "type": "array", "items": { @@ -575,6 +569,12 @@ } ] } + }, + { + "$ref": "#/definitions/WatchFilesString" + }, + { + "$ref": "#/definitions/WatchFilesObject" } ], "description": "List of files to watch for file changes and serve. https://webpack.js.org/configuration/dev-server/#devserverwatchfiles" diff --git a/test/__snapshots__/validate-options.test.js.snap.webpack4 b/test/__snapshots__/validate-options.test.js.snap.webpack4 index 245477b9b2..06f80a1aae 100644 --- a/test/__snapshots__/validate-options.test.js.snap.webpack4 +++ b/test/__snapshots__/validate-options.test.js.snap.webpack4 @@ -335,16 +335,16 @@ exports[`options validate should throw an error on the "open" option with '[]' v exports[`options validate should throw an error on the "open" option with '{"app":true}' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.open should be one of these: - boolean | non-empty string | object { target?, app? } | [non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item) + [non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { target?, app? } -> Tells dev-server to open the browser after server had been started. Set it to true to open your default browser. https://webpack.js.org/configuration/dev-server/#devserveropen Details: * configuration.open.app should be one of these: - non-empty string | [non-empty string, ...] (should not have fewer than 1 item) + [non-empty string, ...] (should not have fewer than 1 item) | non-empty string -> Open specified browser. Details: - * configuration.open.app should be a non-empty string. * configuration.open.app should be an array: - [non-empty string, ...] (should not have fewer than 1 item)" + [non-empty string, ...] (should not have fewer than 1 item) + * configuration.open.app should be a non-empty string." `; exports[`options validate should throw an error on the "open" option with '{"foo":"bar"}' value 1`] = ` @@ -356,17 +356,17 @@ exports[`options validate should throw an error on the "open" option with '{"foo exports[`options validate should throw an error on the "open" option with '{"target":90}' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.open should be one of these: - boolean | non-empty string | object { target?, app? } | [non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item) + [non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { target?, app? } -> Tells dev-server to open the browser after server had been started. Set it to true to open your default browser. https://webpack.js.org/configuration/dev-server/#devserveropen Details: * configuration.open.target should be one of these: - boolean | non-empty string | [non-empty string, ...] (should not have fewer than 1 item) + [non-empty string, ...] (should not have fewer than 1 item) | boolean | non-empty string -> Open specified route in browser. Details: - * configuration.open.target should be a boolean. - * configuration.open.target should be a non-empty string. * configuration.open.target should be an array: - [non-empty string, ...] (should not have fewer than 1 item)" + [non-empty string, ...] (should not have fewer than 1 item) + * configuration.open.target should be a boolean. + * configuration.open.target should be a non-empty string." `; exports[`options validate should throw an error on the "port" option with 'false' value 1`] = ` @@ -440,22 +440,22 @@ exports[`options validate should throw an error on the "static" option with '{"d exports[`options validate should throw an error on the "static" option with '{"publicPath":false}' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.static should be one of these: - boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } | [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } -> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic Details: * configuration.static.publicPath should be one of these: - non-empty string | [non-empty string, ...] (should not have fewer than 1 item) + [non-empty string, ...] (should not have fewer than 1 item) | non-empty string -> The bundled files will be available in the browser under this path. Details: - * configuration.static.publicPath should be a non-empty string. * configuration.static.publicPath should be an array: - [non-empty string, ...] (should not have fewer than 1 item)" + [non-empty string, ...] (should not have fewer than 1 item) + * configuration.static.publicPath should be a non-empty string." `; exports[`options validate should throw an error on the "static" option with '{"serveIndex":"true"}' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.static should be one of these: - boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } | [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } -> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic Details: * configuration.static.serveIndex should be one of these: @@ -470,7 +470,7 @@ exports[`options validate should throw an error on the "static" option with '{"s exports[`options validate should throw an error on the "static" option with '{"watch":10}' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.static should be one of these: - boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } | [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } -> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic Details: * configuration.static.watch should be one of these: @@ -486,55 +486,55 @@ exports[`options validate should throw an error on the "static" option with '{"w exports[`options validate should throw an error on the "static" option with '0' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.static should be one of these: - boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } | [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } -> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic Details: + * configuration.static should be an array: + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) * configuration.static should be a boolean. * configuration.static should be a non-empty string. * configuration.static should be an object: - object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } - * configuration.static should be an array: - [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item)" + object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }" `; exports[`options validate should throw an error on the "static" option with 'null' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.static should be one of these: - boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } | [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } -> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic Details: + * configuration.static should be an array: + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) * configuration.static should be a boolean. * configuration.static should be a non-empty string. * configuration.static should be an object: - object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } - * configuration.static should be an array: - [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item)" + object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }" `; exports[`options validate should throw an error on the "watchFiles" option with '123' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.watchFiles should be one of these: - non-empty string | object { paths?, options? } | [non-empty string | object { paths?, options? }, ...] + [non-empty string | object { paths?, options? }, ...] | non-empty string | object { paths?, options? } -> List of files to watch for file changes and serve. https://webpack.js.org/configuration/dev-server/#devserverwatchfiles Details: + * configuration.watchFiles should be an array: + [non-empty string | object { paths?, options? }, ...] * configuration.watchFiles should be a non-empty string. * configuration.watchFiles should be an object: - object { paths?, options? } - * configuration.watchFiles should be an array: - [non-empty string | object { paths?, options? }, ...]" + object { paths?, options? }" `; exports[`options validate should throw an error on the "watchFiles" option with 'false' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.watchFiles should be one of these: - non-empty string | object { paths?, options? } | [non-empty string | object { paths?, options? }, ...] + [non-empty string | object { paths?, options? }, ...] | non-empty string | object { paths?, options? } -> List of files to watch for file changes and serve. https://webpack.js.org/configuration/dev-server/#devserverwatchfiles Details: + * configuration.watchFiles should be an array: + [non-empty string | object { paths?, options? }, ...] * configuration.watchFiles should be a non-empty string. * configuration.watchFiles should be an object: - object { paths?, options? } - * configuration.watchFiles should be an array: - [non-empty string | object { paths?, options? }, ...]" + object { paths?, options? }" `; exports[`options validate should throw an error on the "webSocketServer" option with '{"notAnOption":true}' value 1`] = ` diff --git a/test/__snapshots__/validate-options.test.js.snap.webpack5 b/test/__snapshots__/validate-options.test.js.snap.webpack5 index 245477b9b2..06f80a1aae 100644 --- a/test/__snapshots__/validate-options.test.js.snap.webpack5 +++ b/test/__snapshots__/validate-options.test.js.snap.webpack5 @@ -335,16 +335,16 @@ exports[`options validate should throw an error on the "open" option with '[]' v exports[`options validate should throw an error on the "open" option with '{"app":true}' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.open should be one of these: - boolean | non-empty string | object { target?, app? } | [non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item) + [non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { target?, app? } -> Tells dev-server to open the browser after server had been started. Set it to true to open your default browser. https://webpack.js.org/configuration/dev-server/#devserveropen Details: * configuration.open.app should be one of these: - non-empty string | [non-empty string, ...] (should not have fewer than 1 item) + [non-empty string, ...] (should not have fewer than 1 item) | non-empty string -> Open specified browser. Details: - * configuration.open.app should be a non-empty string. * configuration.open.app should be an array: - [non-empty string, ...] (should not have fewer than 1 item)" + [non-empty string, ...] (should not have fewer than 1 item) + * configuration.open.app should be a non-empty string." `; exports[`options validate should throw an error on the "open" option with '{"foo":"bar"}' value 1`] = ` @@ -356,17 +356,17 @@ exports[`options validate should throw an error on the "open" option with '{"foo exports[`options validate should throw an error on the "open" option with '{"target":90}' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.open should be one of these: - boolean | non-empty string | object { target?, app? } | [non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item) + [non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { target?, app? } -> Tells dev-server to open the browser after server had been started. Set it to true to open your default browser. https://webpack.js.org/configuration/dev-server/#devserveropen Details: * configuration.open.target should be one of these: - boolean | non-empty string | [non-empty string, ...] (should not have fewer than 1 item) + [non-empty string, ...] (should not have fewer than 1 item) | boolean | non-empty string -> Open specified route in browser. Details: - * configuration.open.target should be a boolean. - * configuration.open.target should be a non-empty string. * configuration.open.target should be an array: - [non-empty string, ...] (should not have fewer than 1 item)" + [non-empty string, ...] (should not have fewer than 1 item) + * configuration.open.target should be a boolean. + * configuration.open.target should be a non-empty string." `; exports[`options validate should throw an error on the "port" option with 'false' value 1`] = ` @@ -440,22 +440,22 @@ exports[`options validate should throw an error on the "static" option with '{"d exports[`options validate should throw an error on the "static" option with '{"publicPath":false}' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.static should be one of these: - boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } | [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } -> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic Details: * configuration.static.publicPath should be one of these: - non-empty string | [non-empty string, ...] (should not have fewer than 1 item) + [non-empty string, ...] (should not have fewer than 1 item) | non-empty string -> The bundled files will be available in the browser under this path. Details: - * configuration.static.publicPath should be a non-empty string. * configuration.static.publicPath should be an array: - [non-empty string, ...] (should not have fewer than 1 item)" + [non-empty string, ...] (should not have fewer than 1 item) + * configuration.static.publicPath should be a non-empty string." `; exports[`options validate should throw an error on the "static" option with '{"serveIndex":"true"}' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.static should be one of these: - boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } | [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } -> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic Details: * configuration.static.serveIndex should be one of these: @@ -470,7 +470,7 @@ exports[`options validate should throw an error on the "static" option with '{"s exports[`options validate should throw an error on the "static" option with '{"watch":10}' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.static should be one of these: - boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } | [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } -> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic Details: * configuration.static.watch should be one of these: @@ -486,55 +486,55 @@ exports[`options validate should throw an error on the "static" option with '{"w exports[`options validate should throw an error on the "static" option with '0' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.static should be one of these: - boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } | [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } -> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic Details: + * configuration.static should be an array: + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) * configuration.static should be a boolean. * configuration.static should be a non-empty string. * configuration.static should be an object: - object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } - * configuration.static should be an array: - [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item)" + object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }" `; exports[`options validate should throw an error on the "static" option with 'null' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.static should be one of these: - boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } | [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } -> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic Details: + * configuration.static should be an array: + [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item) * configuration.static should be a boolean. * configuration.static should be a non-empty string. * configuration.static should be an object: - object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } - * configuration.static should be an array: - [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item)" + object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }" `; exports[`options validate should throw an error on the "watchFiles" option with '123' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.watchFiles should be one of these: - non-empty string | object { paths?, options? } | [non-empty string | object { paths?, options? }, ...] + [non-empty string | object { paths?, options? }, ...] | non-empty string | object { paths?, options? } -> List of files to watch for file changes and serve. https://webpack.js.org/configuration/dev-server/#devserverwatchfiles Details: + * configuration.watchFiles should be an array: + [non-empty string | object { paths?, options? }, ...] * configuration.watchFiles should be a non-empty string. * configuration.watchFiles should be an object: - object { paths?, options? } - * configuration.watchFiles should be an array: - [non-empty string | object { paths?, options? }, ...]" + object { paths?, options? }" `; exports[`options validate should throw an error on the "watchFiles" option with 'false' value 1`] = ` "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. - configuration.watchFiles should be one of these: - non-empty string | object { paths?, options? } | [non-empty string | object { paths?, options? }, ...] + [non-empty string | object { paths?, options? }, ...] | non-empty string | object { paths?, options? } -> List of files to watch for file changes and serve. https://webpack.js.org/configuration/dev-server/#devserverwatchfiles Details: + * configuration.watchFiles should be an array: + [non-empty string | object { paths?, options? }, ...] * configuration.watchFiles should be a non-empty string. * configuration.watchFiles should be an object: - object { paths?, options? } - * configuration.watchFiles should be an array: - [non-empty string | object { paths?, options? }, ...]" + object { paths?, options? }" `; exports[`options validate should throw an error on the "webSocketServer" option with '{"notAnOption":true}' value 1`] = `