Skip to content

Commit 6380b97

Browse files
fix: update
1 parent ec15e5c commit 6380b97

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lib/options.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"title": "Dev Server options",
3-
"description": "Options object as provided by the user.",
43
"type": "object",
54
"definitions": {
65
"AllowedHosts": {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ exports[`options validate should throw an error on the "webSocketServer" option
612612
object { type?, options? }"
613613
`;
614614

615-
exports[`options validate should throw an evalidate-options.test.js.snap.webpack5rror on the "webSocketServer" option with 'nonexistent-implementation' value 1`] = `"Error: When you use custom web socket implementation you must explicitly specify client.transport. client.transport must be a string denoting a default implementation (e.g. 'sockjs', 'ws') or a full path to a JS file which exports a class extending BaseClient (webpack-dev-server/client-src/clients/BaseClient.js) via require.resolve(...)"`;
615+
exports[`options validate should throw an error on the "webSocketServer" option with 'nonexistent-implementation' value 1`] = `"Error: When you use custom web socket implementation you must explicitly specify client.transport. client.transport must be a string denoting a default implementation (e.g. 'sockjs', 'ws') or a full path to a JS file which exports a class extending BaseClient (webpack-dev-server/client-src/clients/BaseClient.js) via require.resolve(...)"`;
616616

617617
exports[`options validate should throw an error on the "webSocketServer" option with 'null' value 1`] = `
618618
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ exports[`options validate should throw an error on the "webSocketServer" option
612612
object { type?, options? }"
613613
`;
614614

615-
exports[`options validate should throw an evalidate-options.test.js.snap.webpack5rror on the "webSocketServer" option with 'nonexistent-implementation' value 1`] = `"Error: When you use custom web socket implementation you must explicitly specify client.transport. client.transport must be a string denoting a default implementation (e.g. 'sockjs', 'ws') or a full path to a JS file which exports a class extending BaseClient (webpack-dev-server/client-src/clients/BaseClient.js) via require.resolve(...)"`;
615+
exports[`options validate should throw an error on the "webSocketServer" option with 'nonexistent-implementation' value 1`] = `"Error: When you use custom web socket implementation you must explicitly specify client.transport. client.transport must be a string denoting a default implementation (e.g. 'sockjs', 'ws') or a full path to a JS file which exports a class extending BaseClient (webpack-dev-server/client-src/clients/BaseClient.js) via require.resolve(...)"`;
616616

617617
exports[`options validate should throw an error on the "webSocketServer" option with 'null' value 1`] = `
618618
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.

0 commit comments

Comments
 (0)