@@ -109,6 +109,44 @@ Object {
109
109
}
110
110
`;
111
111
112
+ exports[`normalizeOptions client host and string port should set correct options 1`] = `
113
+ Object {
114
+ "allowedHosts": "auto",
115
+ "client": Object {
116
+ "hotEntry": true,
117
+ "overlay": true,
118
+ "webSocketURL": Object {
119
+ "host": "my.host",
120
+ "port": 9000,
121
+ },
122
+ },
123
+ "compress": true,
124
+ "devMiddleware": Object {},
125
+ "hot": true,
126
+ "liveReload": true,
127
+ "setupExitSignals": true,
128
+ "static": Array [
129
+ Object {
130
+ "directory": "CWD",
131
+ "publicPath": Array [
132
+ "/",
133
+ ],
134
+ "serveIndex": Object {
135
+ "icons": true,
136
+ },
137
+ "staticOptions": Object {},
138
+ "watch": Object {},
139
+ },
140
+ ],
141
+ "webSocketServer": Object {
142
+ "options": Object {
143
+ "path": "/ws",
144
+ },
145
+ "type": "ws",
146
+ },
147
+ }
148
+ `;
149
+
112
150
exports[`normalizeOptions client path should set correct options 1`] = `
113
151
Object {
114
152
"allowedHosts": "auto",
@@ -219,6 +257,82 @@ Object {
219
257
}
220
258
`;
221
259
260
+ exports[`normalizeOptions client.transport ws string and webSocketServer object should set correct options 1`] = `
261
+ Object {
262
+ "allowedHosts": "auto",
263
+ "client": Object {
264
+ "hotEntry": true,
265
+ "overlay": true,
266
+ "transport": "ws",
267
+ "webSocketURL": Object {},
268
+ },
269
+ "compress": true,
270
+ "devMiddleware": Object {},
271
+ "hot": true,
272
+ "liveReload": true,
273
+ "setupExitSignals": true,
274
+ "static": Array [
275
+ Object {
276
+ "directory": "CWD",
277
+ "publicPath": Array [
278
+ "/",
279
+ ],
280
+ "serveIndex": Object {
281
+ "icons": true,
282
+ },
283
+ "staticOptions": Object {},
284
+ "watch": Object {},
285
+ },
286
+ ],
287
+ "webSocketServer": Object {
288
+ "options": Object {
289
+ "host": "myhost",
290
+ "path": "/ws",
291
+ "port": 8080,
292
+ },
293
+ "type": "ws",
294
+ },
295
+ }
296
+ `;
297
+
298
+ exports[`normalizeOptions client.transport ws string and webSocketServer object with port as string should set correct options 1`] = `
299
+ Object {
300
+ "allowedHosts": "auto",
301
+ "client": Object {
302
+ "hotEntry": true,
303
+ "overlay": true,
304
+ "transport": "ws",
305
+ "webSocketURL": Object {},
306
+ },
307
+ "compress": true,
308
+ "devMiddleware": Object {},
309
+ "hot": true,
310
+ "liveReload": true,
311
+ "setupExitSignals": true,
312
+ "static": Array [
313
+ Object {
314
+ "directory": "CWD",
315
+ "publicPath": Array [
316
+ "/",
317
+ ],
318
+ "serveIndex": Object {
319
+ "icons": true,
320
+ },
321
+ "staticOptions": Object {},
322
+ "watch": Object {},
323
+ },
324
+ ],
325
+ "webSocketServer": Object {
326
+ "options": Object {
327
+ "host": "myhost",
328
+ "path": "/ws",
329
+ "port": 8080,
330
+ },
331
+ "type": "ws",
332
+ },
333
+ }
334
+ `;
335
+
222
336
exports[`normalizeOptions client.transport ws string and webSocketServer ws string should set correct options 1`] = `
223
337
Object {
224
338
"allowedHosts": "auto",
@@ -575,6 +689,42 @@ Object {
575
689
}
576
690
`;
577
691
692
+ exports[`normalizeOptions port string should set correct options 1`] = `
693
+ Object {
694
+ "allowedHosts": "auto",
695
+ "client": Object {
696
+ "hotEntry": true,
697
+ "overlay": true,
698
+ "webSocketURL": Object {},
699
+ },
700
+ "compress": true,
701
+ "devMiddleware": Object {},
702
+ "hot": true,
703
+ "liveReload": true,
704
+ "port": 9000,
705
+ "setupExitSignals": true,
706
+ "static": Array [
707
+ Object {
708
+ "directory": "CWD",
709
+ "publicPath": Array [
710
+ "/",
711
+ ],
712
+ "serveIndex": Object {
713
+ "icons": true,
714
+ },
715
+ "staticOptions": Object {},
716
+ "watch": Object {},
717
+ },
718
+ ],
719
+ "webSocketServer": Object {
720
+ "options": Object {
721
+ "path": "/ws",
722
+ },
723
+ "type": "ws",
724
+ },
725
+ }
726
+ `;
727
+
578
728
exports[`normalizeOptions single compiler watchOptions is object should set correct options 1`] = `
579
729
Object {
580
730
"allowedHosts": "auto",
0 commit comments