@@ -94,46 +94,54 @@ assert.equal(out.status, 0);
94
94
console . groupEnd ( ) ;
95
95
96
96
console . group ( "-w --help" ) ;
97
+ console . log ( "@@ begin " ) ;
97
98
out = child_process . spawnSync ( `../../../rescript` , [ "-w" , "--help" ] , {
98
99
encoding : "utf8" ,
99
100
cwd : __dirname ,
100
101
} ) ;
101
102
assert . equal ( out . stdout , cliHelp ) ;
102
103
assert . equal ( out . stderr , "" ) ;
103
104
assert . equal ( out . status , 0 ) ;
105
+ console . log ( "@@ done" ) ;
104
106
console . groupEnd ( ) ;
105
107
106
108
// Shows cli help with --help arg even if there are invalid arguments after it
107
109
console . group ( "--help -w" ) ;
110
+ console . log ( "@@ begin " ) ;
108
111
out = child_process . spawnSync ( `../../../rescript` , [ "--help" , "-w" ] , {
109
112
encoding : "utf8" ,
110
113
cwd : __dirname ,
111
114
} ) ;
112
115
assert . equal ( out . stdout , cliHelp ) ;
113
116
assert . equal ( out . stderr , "" ) ;
114
117
assert . equal ( out . status , 0 ) ;
118
+ console . log ( "@@ done" ) ;
115
119
console . groupEnd ( ) ;
116
120
117
121
// Shows build help with -h arg
118
122
console . group ( "build -h" ) ;
123
+ console . log ( "@@ begin " ) ;
119
124
out = child_process . spawnSync ( `../../../rescript` , [ "build" , "-h" ] , {
120
125
encoding : "utf8" ,
121
126
cwd : __dirname ,
122
127
} ) ;
123
128
assert . equal ( out . stdout , buildHelp ) ;
124
129
assert . equal ( out . stderr , "" ) ;
125
130
assert . equal ( out . status , 0 ) ;
131
+ console . log ( "@@ done " ) ;
126
132
console . groupEnd ( ) ;
127
133
128
134
// Exits with build help with unknown arg
129
135
console . group ( "build -foo" ) ;
136
+ console . log ( "@@ begin " ) ;
130
137
out = child_process . spawnSync ( `../../../rescript` , [ "build" , "-foo" ] , {
131
138
encoding : "utf8" ,
132
139
cwd : __dirname ,
133
140
} ) ;
134
141
assert . equal ( out . stdout , "" ) ;
135
142
assert . equal ( out . stderr , 'Error: Unknown option "-foo".\n' + buildHelp ) ;
136
143
assert . equal ( out . status , 2 ) ;
144
+ console . log ( "@@ done " ) ;
137
145
console . groupEnd ( ) ;
138
146
139
147
// Shows cli help with --help arg
0 commit comments