File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function startProxy(port) {
1313 proxy . use (
1414 '/' ,
1515 httpProxy ( {
16- target : 'http://[::] :8080' ,
16+ target : 'http://0.0.0.0 :8080' ,
1717 ws : true ,
1818 changeOrigin : true ,
1919 proxyTimeout : 30000 ,
@@ -30,7 +30,7 @@ describe('Client code', () => {
3030 const options = {
3131 compress : true ,
3232 port : 8080 ,
33- host : ':: ' ,
33+ host : '0.0.0.0 ' ,
3434 disableHostCheck : true ,
3535 hot : true ,
3636 watchOptions : {
@@ -49,15 +49,15 @@ describe('Client code', () => {
4949 jest . setTimeout ( 50000 ) ;
5050
5151 beforeAll ( ( ) => {
52- proxy = startProxy ( 9000 ) ;
52+ proxy = startProxy ( 8000 ) ;
5353 } ) ;
5454
5555 afterAll ( ( ) => {
5656 proxy . close ( ) ;
5757 } ) ;
5858
5959 it ( 'responds with a 200' , ( done ) => {
60- const req = request ( 'http://localhost:9000 ' ) ;
60+ const req = request ( 'http://localhost:8000 ' ) ;
6161 req . get ( '/sockjs-node' ) . expect ( 200 , 'Welcome to SockJS!\n' , done ) ;
6262 } ) ;
6363
@@ -67,12 +67,12 @@ describe('Client code', () => {
6767 . waitForRequest ( ( requestObj ) => requestObj . url ( ) . match ( / s o c k j s - n o d e / ) )
6868 . then ( ( requestObj ) => {
6969 expect ( requestObj . url ( ) ) . toMatch (
70- / ^ h t t p : \/ \/ l o c a l h o s t : 9 0 0 0 \/ s o c k j s - n o d e /
70+ / ^ h t t p : \/ \/ l o c a l h o s t : 8 0 0 0 \/ s o c k j s - n o d e /
7171 ) ;
7272 browser . close ( ) ;
7373 done ( ) ;
7474 } ) ;
75- page . goto ( 'http://localhost:9000 /main' ) ;
75+ page . goto ( 'http://localhost:8000 /main' ) ;
7676 } ) ;
7777 } ) ;
7878 } ) ;
You can’t perform that action at this time.
0 commit comments