@@ -57,7 +57,7 @@ describe("API", () => {
5757
5858 expect ( process . env . WEBPACK_SERVE ) . toBe ( "true" ) ;
5959
60- const response = await page . goto ( `http://127.0.0.1 :${ port } /` , {
60+ const response = await page . goto ( `http://localhost :${ port } /` , {
6161 waitUntil : "networkidle0" ,
6262 } ) ;
6363
@@ -92,7 +92,7 @@ describe("API", () => {
9292 pageErrors . push ( error ) ;
9393 } ) ;
9494
95- await page . goto ( `http://127.0.0.1 :${ port } /` , {
95+ await page . goto ( `http://localhost :${ port } /` , {
9696 waitUntil : "networkidle0" ,
9797 } ) ;
9898
@@ -132,7 +132,7 @@ describe("API", () => {
132132 pageErrors . push ( error ) ;
133133 } ) ;
134134
135- await page . goto ( `http://127.0.0.1 :${ port } /` , {
135+ await page . goto ( `http://localhost :${ port } /` , {
136136 waitUntil : "networkidle0" ,
137137 } ) ;
138138
@@ -205,7 +205,7 @@ describe("API", () => {
205205 pageErrors . push ( error ) ;
206206 } ) ;
207207
208- await page . goto ( `http://127.0.0.1 :${ port } /` , {
208+ await page . goto ( `http://localhost :${ port } /` , {
209209 waitUntil : "networkidle0" ,
210210 } ) ;
211211
@@ -241,7 +241,7 @@ describe("API", () => {
241241 firstPageErrors . push ( error ) ;
242242 } ) ;
243243
244- await firstPage . goto ( `http://127.0.0.1 :${ port } /` , {
244+ await firstPage . goto ( `http://localhost :${ port } /` , {
245245 waitUntil : "networkidle0" ,
246246 } ) ;
247247
@@ -271,7 +271,7 @@ describe("API", () => {
271271 secondPageErrors . push ( error ) ;
272272 } ) ;
273273
274- await secondPage . goto ( `http://127.0.0.1 :${ port } /` , {
274+ await secondPage . goto ( `http://localhost :${ port } /` , {
275275 waitUntil : "networkidle0" ,
276276 } ) ;
277277
@@ -328,7 +328,7 @@ describe("API", () => {
328328 server . invalidate ( ) ;
329329 server . middleware . context . callbacks [ 0 ] = callback ;
330330
331- const response = await page . goto ( `http://127.0.0.1 :${ port } /` , {
331+ const response = await page . goto ( `http://localhost :${ port } /` , {
332332 waitUntil : "networkidle0" ,
333333 } ) ;
334334
@@ -346,7 +346,7 @@ describe("API", () => {
346346
347347 server . invalidate ( callback ) ;
348348
349- const response = await page . goto ( `http://127.0.0.1 :${ port } /` , {
349+ const response = await page . goto ( `http://localhost :${ port } /` , {
350350 waitUntil : "networkidle0" ,
351351 } ) ;
352352
@@ -447,7 +447,7 @@ describe("API", () => {
447447 pageErrors . push ( error ) ;
448448 } ) ;
449449
450- const response = await page . goto ( `http://127.0.0.1 :${ devServerPort } /` , {
450+ const response = await page . goto ( `http://localhost :${ devServerPort } /` , {
451451 waitUntil : "networkidle0" ,
452452 } ) ;
453453
@@ -487,7 +487,7 @@ describe("API", () => {
487487 pageErrors . push ( error ) ;
488488 } ) ;
489489
490- const response = await page . goto ( `http://127.0.0.1 :${ devServerPort } /` , {
490+ const response = await page . goto ( `http://localhost :${ devServerPort } /` , {
491491 waitUntil : "networkidle0" ,
492492 } ) ;
493493
@@ -526,7 +526,7 @@ describe("API", () => {
526526 pageErrors . push ( error ) ;
527527 } ) ;
528528
529- const response = await page . goto ( `http://127.0.0.1 :${ devServerPort } /` , {
529+ const response = await page . goto ( `http://localhost :${ devServerPort } /` , {
530530 waitUntil : "networkidle0" ,
531531 } ) ;
532532
@@ -565,7 +565,7 @@ describe("API", () => {
565565 pageErrors . push ( error ) ;
566566 } ) ;
567567
568- const response = await page . goto ( `http://127.0.0.1 :${ devServerPort } /` , {
568+ const response = await page . goto ( `http://localhost :${ devServerPort } /` , {
569569 waitUntil : "networkidle0" ,
570570 } ) ;
571571
@@ -605,7 +605,7 @@ describe("API", () => {
605605 pageErrors . push ( error ) ;
606606 } ) ;
607607
608- const response = await page . goto ( `http://127.0.0.1 :${ devServerPort } /` , {
608+ const response = await page . goto ( `http://localhost :${ devServerPort } /` , {
609609 waitUntil : "networkidle0" ,
610610 } ) ;
611611
@@ -643,7 +643,9 @@ describe("API", () => {
643643
644644 describe ( "Server.checkHostHeader" , ( ) => {
645645 it ( "should allow access for every requests using an IP" , ( ) => {
646- const options = { } ;
646+ const options = {
647+ allowedHosts : "all" ,
648+ } ;
647649
648650 const tests = [
649651 "192.168.1.123" ,
@@ -715,7 +717,7 @@ describe("API", () => {
715717
716718 sessionSubscribe ( session ) ;
717719
718- const response = await page . goto ( `http://127.0.0.1 :${ port } /` , {
720+ const response = await page . goto ( `http://localhost :${ port } /` , {
719721 waitUntil : "networkidle0" ,
720722 } ) ;
721723
0 commit comments