@@ -15,7 +15,7 @@ open.mockImplementation(() => {
15
15
} ) ;
16
16
17
17
describe ( 'open option' , ( ) => {
18
- it ( 'should work with unspecified host' , ( done ) => {
18
+ it . only ( 'should work with unspecified host' , ( done ) => {
19
19
const compiler = webpack ( config ) ;
20
20
const server = new Server ( compiler , {
21
21
open : true ,
@@ -27,7 +27,7 @@ describe('open option', () => {
27
27
server . close ( ( ) => {
28
28
expect ( open . mock . calls [ 0 ] ) . toMatchInlineSnapshot ( `
29
29
Array [
30
- "http://localhost :8117/",
30
+ "http://127.0.0.1 :8117/",
31
31
Object {
32
32
"wait": false,
33
33
},
@@ -54,7 +54,7 @@ describe('open option', () => {
54
54
server . close ( ( ) => {
55
55
expect ( open . mock . calls [ 1 ] ) . toMatchInlineSnapshot ( `
56
56
Array [
57
- "http://localhost :8117/index.html",
57
+ "http://127.0.0.1 :8117/index.html",
58
58
Object {
59
59
"wait": false,
60
60
},
@@ -80,7 +80,7 @@ describe('open option', () => {
80
80
server . close ( ( ) => {
81
81
expect ( open . mock . calls [ 0 ] ) . toMatchInlineSnapshot ( `
82
82
Array [
83
- "http://localhost :8117/",
83
+ "http://127.0.0.1 :8117/",
84
84
Object {
85
85
"wait": false,
86
86
},
@@ -107,7 +107,7 @@ describe('open option', () => {
107
107
server . close ( ( ) => {
108
108
expect ( open . mock . calls [ 0 ] ) . toMatchInlineSnapshot ( `
109
109
Array [
110
- "http://localhost :8117/",
110
+ "http://127.0.0.1 :8117/",
111
111
Object {
112
112
"wait": false,
113
113
},
@@ -134,7 +134,7 @@ describe('open option', () => {
134
134
server . close ( ( ) => {
135
135
expect ( open . mock . calls [ 0 ] ) . toMatchInlineSnapshot ( `
136
136
Array [
137
- "http://localhost :8117/",
137
+ "http://127.0.0.1 :8117/",
138
138
Object {
139
139
"wait": false,
140
140
},
0 commit comments