@@ -50,6 +50,56 @@ describe('CLI', () => {
50
50
. catch ( done ) ;
51
51
} ) ;
52
52
53
+ it ( '--no-bonjour' , ( done ) => {
54
+ testBin ( '--no-bonjour' )
55
+ . then ( ( output ) => {
56
+ expect ( output . exitCode ) . toEqual ( 0 ) ;
57
+ expect ( output . stderr ) . not . toContain ( 'Bonjour' ) ;
58
+ done ( ) ;
59
+ } )
60
+ . catch ( done ) ;
61
+ } ) ;
62
+
63
+ it ( '--client-progress' , ( done ) => {
64
+ testBin ( '--client-progress' )
65
+ . then ( ( output ) => {
66
+ expect ( output . exitCode ) . toEqual ( 0 ) ;
67
+ done ( ) ;
68
+ } )
69
+ . catch ( done ) ;
70
+ } ) ;
71
+
72
+ it ( '--no-client-progress' , ( done ) => {
73
+ testBin ( '--no-client-progress' )
74
+ . then ( ( output ) => {
75
+ expect ( output . exitCode ) . toEqual ( 0 ) ;
76
+ done ( ) ;
77
+ } )
78
+ . catch ( done ) ;
79
+ } ) ;
80
+
81
+ it ( '--http2' , ( done ) => {
82
+ testBin ( '--http2' )
83
+ . then ( ( output ) => {
84
+ expect ( output . exitCode ) . toEqual ( 0 ) ;
85
+ expect ( output . stderr ) . toContain ( 'Project is running at' ) ;
86
+ expect ( / h t t p s : \/ \/ / . test ( output . stderr ) ) . toEqual ( true ) ;
87
+ done ( ) ;
88
+ } )
89
+ . catch ( done ) ;
90
+ } ) ;
91
+
92
+ it ( '--no-http2' , ( done ) => {
93
+ testBin ( '--no-http2' )
94
+ . then ( ( output ) => {
95
+ expect ( output . exitCode ) . toEqual ( 0 ) ;
96
+ expect ( / h t t p s : \/ \/ / . test ( output . stderr ) ) . toEqual ( false ) ;
97
+ expect ( / h t t p : \/ \/ l o c a l h o s t : [ 0 - 9 ] + / . test ( output . stderr ) ) . toEqual ( true ) ;
98
+ done ( ) ;
99
+ } )
100
+ . catch ( done ) ;
101
+ } ) ;
102
+
53
103
it ( '--https' , ( done ) => {
54
104
testBin ( '--https' )
55
105
. then ( ( output ) => {
@@ -319,6 +369,42 @@ describe('CLI', () => {
319
369
. catch ( done ) ;
320
370
} ) ;
321
371
372
+ it ( '--no-client-overlay' , ( done ) => {
373
+ testBin ( '--no-client-overlay' )
374
+ . then ( ( output ) => {
375
+ expect ( output . exitCode ) . toEqual ( 0 ) ;
376
+ done ( ) ;
377
+ } )
378
+ . catch ( done ) ;
379
+ } ) ;
380
+
381
+ it ( '--client-logging' , ( done ) => {
382
+ testBin ( '--client-logging verbose' )
383
+ . then ( ( output ) => {
384
+ expect ( output . exitCode ) . toEqual ( 0 ) ;
385
+ done ( ) ;
386
+ } )
387
+ . catch ( done ) ;
388
+ } ) ;
389
+
390
+ it ( '--compress' , ( done ) => {
391
+ testBin ( '--compress' )
392
+ . then ( ( output ) => {
393
+ expect ( output . exitCode ) . toEqual ( 0 ) ;
394
+ done ( ) ;
395
+ } )
396
+ . catch ( done ) ;
397
+ } ) ;
398
+
399
+ it ( '--no-compress' , ( done ) => {
400
+ testBin ( '--compress' )
401
+ . then ( ( output ) => {
402
+ expect ( output . exitCode ) . toEqual ( 0 ) ;
403
+ done ( ) ;
404
+ } )
405
+ . catch ( done ) ;
406
+ } ) ;
407
+
322
408
it ( 'should generate correct cli flags' , ( done ) => {
323
409
testBin ( '--help' )
324
410
. then ( ( output ) => {
0 commit comments