File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function startProxy(port) {
13
13
proxy . use (
14
14
'/' ,
15
15
httpProxy ( {
16
- target : 'http://[::] :8080' ,
16
+ target : 'http://0.0.0.0 :8080' ,
17
17
ws : true ,
18
18
changeOrigin : true ,
19
19
proxyTimeout : 30000 ,
@@ -30,7 +30,7 @@ describe('Client code', () => {
30
30
const options = {
31
31
compress : true ,
32
32
port : 8080 ,
33
- host : ':: ' ,
33
+ host : '0.0.0.0 ' ,
34
34
disableHostCheck : true ,
35
35
hot : true ,
36
36
watchOptions : {
@@ -49,15 +49,15 @@ describe('Client code', () => {
49
49
jest . setTimeout ( 50000 ) ;
50
50
51
51
beforeAll ( ( ) => {
52
- proxy = startProxy ( 9000 ) ;
52
+ proxy = startProxy ( 8000 ) ;
53
53
} ) ;
54
54
55
55
afterAll ( ( ) => {
56
56
proxy . close ( ) ;
57
57
} ) ;
58
58
59
59
it ( 'responds with a 200' , ( done ) => {
60
- const req = request ( 'http://localhost:9000 ' ) ;
60
+ const req = request ( 'http://localhost:8000 ' ) ;
61
61
req . get ( '/sockjs-node' ) . expect ( 200 , 'Welcome to SockJS!\n' , done ) ;
62
62
} ) ;
63
63
@@ -67,12 +67,12 @@ describe('Client code', () => {
67
67
. waitForRequest ( ( requestObj ) => requestObj . url ( ) . match ( / s o c k j s - n o d e / ) )
68
68
. then ( ( requestObj ) => {
69
69
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 /
71
71
) ;
72
72
browser . close ( ) ;
73
73
done ( ) ;
74
74
} ) ;
75
- page . goto ( 'http://localhost:9000 /main' ) ;
75
+ page . goto ( 'http://localhost:8000 /main' ) ;
76
76
} ) ;
77
77
} ) ;
78
78
} ) ;
You can’t perform that action at this time.
0 commit comments