File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -109,18 +109,23 @@ exports[`options validate should throw an error on the "client" option with '{"w
109
109
-> Tells clients connected to devServer to use the provided path to connect."
110
110
`;
111
111
112
+ exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":""}}' value 1`] = `
113
+ "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
114
+ - configuration.client.webSocketURL.port should be an non-empty string."
115
+ `;
116
+
112
117
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
113
118
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
114
119
- configuration.client.webSocketURL should be one of these:
115
120
non-empty string | object { host?, port?, path? }
116
121
-> When using dev server and you're proxying dev-server, the client script does not always know where to connect to.
117
122
Details:
118
123
* configuration.client.webSocketURL.port should be one of these:
119
- number | string
124
+ number | non-empty string
120
125
-> Tells clients connected to devServer to use the provided port.
121
126
Details:
122
127
* configuration.client.webSocketURL.port should be a number.
123
- * configuration.client.webSocketURL.port should be a string."
128
+ * configuration.client.webSocketURL.port should be a non-empty string."
124
129
`;
125
130
126
131
exports[`options validate should throw an error on the "client" option with 'whoops!' value 1`] = `
Original file line number Diff line number Diff line change @@ -109,18 +109,23 @@ exports[`options validate should throw an error on the "client" option with '{"w
109
109
-> Tells clients connected to devServer to use the provided path to connect."
110
110
`;
111
111
112
+ exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":""}}' value 1`] = `
113
+ "ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
114
+ - configuration.client.webSocketURL.port should be an non-empty string."
115
+ `;
116
+
112
117
exports[`options validate should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = `
113
118
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
114
119
- configuration.client.webSocketURL should be one of these:
115
120
non-empty string | object { host?, port?, path? }
116
121
-> When using dev server and you're proxying dev-server, the client script does not always know where to connect to.
117
122
Details:
118
123
* configuration.client.webSocketURL.port should be one of these:
119
- number | string
124
+ number | non-empty string
120
125
-> Tells clients connected to devServer to use the provided port.
121
126
Details:
122
127
* configuration.client.webSocketURL.port should be a number.
123
- * configuration.client.webSocketURL.port should be a string."
128
+ * configuration.client.webSocketURL.port should be a non-empty string."
124
129
`;
125
130
126
131
exports[`options validate should throw an error on the "client" option with 'whoops!' value 1`] = `
You can’t perform that action at this time.
0 commit comments