Skip to content

Commit 8dbbc17

Browse files
committed
fix: ci
1 parent cd7d82e commit 8dbbc17

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

test/server/open-option.test.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ describe('"open" option', () => {
7373
const server = new Server(compiler, {
7474
open: true,
7575
port,
76+
host: '0.0.0.0',
7677
static: false,
7778
});
7879

@@ -95,6 +96,7 @@ describe('"open" option', () => {
9596
const server = new Server(compiler, {
9697
open: true,
9798
port,
99+
host: '::',
98100
static: false,
99101
});
100102

@@ -117,6 +119,7 @@ describe('"open" option', () => {
117119
const server = new Server(compiler, {
118120
open: true,
119121
port,
122+
host: 'localhost',
120123
static: false,
121124
});
122125

@@ -139,6 +142,7 @@ describe('"open" option', () => {
139142
const server = new Server(compiler, {
140143
open: true,
141144
port,
145+
host: '127.0.0.1',
142146
static: false,
143147
});
144148

@@ -161,6 +165,7 @@ describe('"open" option', () => {
161165
const server = new Server(compiler, {
162166
open: true,
163167
port,
168+
host: '::1',
164169
static: false,
165170
});
166171

@@ -183,6 +188,7 @@ describe('"open" option', () => {
183188
const server = new Server(compiler, {
184189
open: true,
185190
port,
191+
host: internalIPv4,
186192
static: false,
187193
});
188194

@@ -230,6 +236,7 @@ describe('"open" option', () => {
230236
const server = new Server(compiler, {
231237
open: true,
232238
port,
239+
host: 'localhost',
233240
static: false,
234241
});
235242

@@ -252,6 +259,7 @@ describe('"open" option', () => {
252259
const server = new Server(compiler, {
253260
open: false,
254261
port,
262+
host: 'localhost',
255263
static: false,
256264
});
257265

@@ -272,6 +280,7 @@ describe('"open" option', () => {
272280
const server = new Server(compiler, {
273281
open: 'index.html',
274282
port,
283+
host: 'localhost',
275284
static: false,
276285
});
277286

@@ -294,6 +303,7 @@ describe('"open" option', () => {
294303
const server = new Server(compiler, {
295304
open: '/index.html',
296305
port,
306+
host: 'localhost',
297307
static: false,
298308
});
299309

@@ -316,6 +326,7 @@ describe('"open" option', () => {
316326
const server = new Server(compiler, {
317327
open: 'http://localhost:8117/index.html',
318328
port,
329+
host: 'localhost',
319330
static: false,
320331
});
321332

@@ -338,6 +349,7 @@ describe('"open" option', () => {
338349
const server = new Server(compiler, {
339350
open: ['first.html', 'second.html'],
340351
port,
352+
host: 'localhost',
341353
static: false,
342354
});
343355

@@ -374,6 +386,7 @@ describe('"open" option', () => {
374386
'http://localhost:8117/second.html',
375387
],
376388
port,
389+
host: 'localhost',
377390
static: false,
378391
});
379392

@@ -407,6 +420,7 @@ describe('"open" option', () => {
407420
const server = new Server(compiler, {
408421
open: {},
409422
port,
423+
host: 'localhost',
410424
static: false,
411425
});
412426

@@ -431,6 +445,7 @@ describe('"open" option', () => {
431445
target: true,
432446
},
433447
port,
448+
host: 'localhost',
434449
static: false,
435450
});
436451

@@ -455,6 +470,7 @@ describe('"open" option', () => {
455470
target: 'index.html',
456471
},
457472
port,
473+
host: 'localhost',
458474
static: false,
459475
});
460476

@@ -479,6 +495,7 @@ describe('"open" option', () => {
479495
target: ['first.html', 'second.html'],
480496
},
481497
port,
498+
host: 'localhost',
482499
static: false,
483500
});
484501

@@ -514,6 +531,7 @@ describe('"open" option', () => {
514531
app: 'google-chrome',
515532
},
516533
port,
534+
host: 'localhost',
517535
static: false,
518536
});
519537

@@ -539,6 +557,7 @@ describe('"open" option', () => {
539557
app: ['google-chrome', '--incognito'],
540558
},
541559
port,
560+
host: 'localhost',
542561
static: false,
543562
});
544563

@@ -565,6 +584,7 @@ describe('"open" option', () => {
565584
app: 'google-chrome',
566585
},
567586
port,
587+
host: 'localhost',
568588
static: false,
569589
});
570590

@@ -591,6 +611,7 @@ describe('"open" option', () => {
591611
app: ['google-chrome', '--incognito'],
592612
},
593613
port,
614+
host: 'localhost',
594615
static: false,
595616
});
596617

@@ -629,6 +650,7 @@ describe('"open" option', () => {
629650
app: ['google-chrome', '--incognito'],
630651
},
631652
port,
653+
host: 'localhost',
632654
static: false,
633655
});
634656

@@ -666,6 +688,7 @@ describe('"open" option', () => {
666688
const server = new Server(compiler, {
667689
open: true,
668690
port,
691+
host: 'localhost',
669692
static: false,
670693
});
671694
const loggerWarnSpy = jest.spyOn(server.logger, 'warn');

test/server/stats-option.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ describe('stats option', () => {
3030
const server = new Server(compiler, {
3131
static: false,
3232
port,
33+
host: 'localhost',
3334
});
3435

3536
compiler.hooks.done.tap('webpack-dev-server', (s) => {
@@ -57,6 +58,7 @@ describe('stats option', () => {
5758
const server = new Server(compiler, {
5859
static: false,
5960
port,
61+
host: 'localhost',
6062
});
6163

6264
compiler.hooks.done.tap('webpack-dev-server', (s) => {

0 commit comments

Comments
 (0)