Skip to content

Commit c79084e

Browse files
committed
fix: ci
1 parent 5b0466f commit c79084e

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
@@ -75,6 +75,7 @@ describe('"open" option', () => {
7575
const server = createServer(compiler, {
7676
open: true,
7777
port,
78+
host: '0.0.0.0',
7879
static: false,
7980
});
8081

@@ -97,6 +98,7 @@ describe('"open" option', () => {
9798
const server = createServer(compiler, {
9899
open: true,
99100
port,
101+
host: '::',
100102
static: false,
101103
});
102104

@@ -119,6 +121,7 @@ describe('"open" option', () => {
119121
const server = createServer(compiler, {
120122
open: true,
121123
port,
124+
host: 'localhost',
122125
static: false,
123126
});
124127

@@ -141,6 +144,7 @@ describe('"open" option', () => {
141144
const server = createServer(compiler, {
142145
open: true,
143146
port,
147+
host: '127.0.0.1',
144148
static: false,
145149
});
146150

@@ -163,6 +167,7 @@ describe('"open" option', () => {
163167
const server = createServer(compiler, {
164168
open: true,
165169
port,
170+
host: '::1',
166171
static: false,
167172
});
168173

@@ -185,6 +190,7 @@ describe('"open" option', () => {
185190
const server = createServer(compiler, {
186191
open: true,
187192
port,
193+
host: internalIPv4,
188194
static: false,
189195
});
190196

@@ -232,6 +238,7 @@ describe('"open" option', () => {
232238
const server = createServer(compiler, {
233239
open: true,
234240
port,
241+
host: 'localhost',
235242
static: false,
236243
});
237244

@@ -254,6 +261,7 @@ describe('"open" option', () => {
254261
const server = createServer(compiler, {
255262
open: false,
256263
port,
264+
host: 'localhost',
257265
static: false,
258266
});
259267

@@ -274,6 +282,7 @@ describe('"open" option', () => {
274282
const server = createServer(compiler, {
275283
open: 'index.html',
276284
port,
285+
host: 'localhost',
277286
static: false,
278287
});
279288

@@ -296,6 +305,7 @@ describe('"open" option', () => {
296305
const server = createServer(compiler, {
297306
open: '/index.html',
298307
port,
308+
host: 'localhost',
299309
static: false,
300310
});
301311

@@ -318,6 +328,7 @@ describe('"open" option', () => {
318328
const server = createServer(compiler, {
319329
open: 'http://localhost:8117/index.html',
320330
port,
331+
host: 'localhost',
321332
static: false,
322333
});
323334

@@ -340,6 +351,7 @@ describe('"open" option', () => {
340351
const server = createServer(compiler, {
341352
open: ['first.html', 'second.html'],
342353
port,
354+
host: 'localhost',
343355
static: false,
344356
});
345357

@@ -376,6 +388,7 @@ describe('"open" option', () => {
376388
'http://localhost:8117/second.html',
377389
],
378390
port,
391+
host: 'localhost',
379392
static: false,
380393
});
381394

@@ -409,6 +422,7 @@ describe('"open" option', () => {
409422
const server = createServer(compiler, {
410423
open: {},
411424
port,
425+
host: 'localhost',
412426
static: false,
413427
});
414428

@@ -433,6 +447,7 @@ describe('"open" option', () => {
433447
target: true,
434448
},
435449
port,
450+
host: 'localhost',
436451
static: false,
437452
});
438453

@@ -457,6 +472,7 @@ describe('"open" option', () => {
457472
target: 'index.html',
458473
},
459474
port,
475+
host: 'localhost',
460476
static: false,
461477
});
462478

@@ -481,6 +497,7 @@ describe('"open" option', () => {
481497
target: ['first.html', 'second.html'],
482498
},
483499
port,
500+
host: 'localhost',
484501
static: false,
485502
});
486503

@@ -516,6 +533,7 @@ describe('"open" option', () => {
516533
app: 'google-chrome',
517534
},
518535
port,
536+
host: 'localhost',
519537
static: false,
520538
});
521539

@@ -541,6 +559,7 @@ describe('"open" option', () => {
541559
app: ['google-chrome', '--incognito'],
542560
},
543561
port,
562+
host: 'localhost',
544563
static: false,
545564
});
546565

@@ -567,6 +586,7 @@ describe('"open" option', () => {
567586
app: 'google-chrome',
568587
},
569588
port,
589+
host: 'localhost',
570590
static: false,
571591
});
572592

@@ -593,6 +613,7 @@ describe('"open" option', () => {
593613
app: ['google-chrome', '--incognito'],
594614
},
595615
port,
616+
host: 'localhost',
596617
static: false,
597618
});
598619

@@ -631,6 +652,7 @@ describe('"open" option', () => {
631652
app: ['google-chrome', '--incognito'],
632653
},
633654
port,
655+
host: 'localhost',
634656
static: false,
635657
});
636658

@@ -668,6 +690,7 @@ describe('"open" option', () => {
668690
const server = createServer(compiler, {
669691
open: true,
670692
port,
693+
host: 'localhost',
671694
static: false,
672695
});
673696
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
@@ -32,6 +32,7 @@ describe('stats option', () => {
3232
const server = createServer(compiler, {
3333
static: false,
3434
port,
35+
host: 'localhost',
3536
});
3637

3738
compiler.hooks.done.tap('webpack-dev-server', (s) => {
@@ -59,6 +60,7 @@ describe('stats option', () => {
5960
const server = createServer(compiler, {
6061
static: false,
6162
port,
63+
host: 'localhost',
6264
});
6365

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

0 commit comments

Comments
 (0)