@@ -73,15 +73,16 @@ const dumpHelp =
73
73
"`rescript dump` dumps the information for the target\n" ;
74
74
75
75
// Shows build help with --help arg
76
- console . group ( "build --help" ) ;
77
- let out = child_process . spawnSync ( `../../../rescript` , [ "build" , "--help" ] , {
78
- encoding : "utf8" ,
79
- cwd : __dirname ,
80
- } ) ;
81
- assert . equal ( out . stdout , buildHelp ) ;
82
- assert . equal ( out . stderr , "" ) ;
83
- assert . equal ( out . status , 0 ) ;
84
- console . groupEnd ( ) ;
76
+ // console.group("build --help");
77
+ let out ;
78
+ // let out = child_process.spawnSync(`../../../rescript`, ["build", "--help"], {
79
+ // encoding: "utf8",
80
+ // cwd: __dirname,
81
+ // });
82
+ // assert.equal(out.stdout, buildHelp);
83
+ // assert.equal(out.stderr, "");
84
+ // assert.equal(out.status, 0);
85
+ // console.groupEnd();
85
86
86
87
// console.group("build -w --help");
87
88
// out = child_process.spawnSync(`../../../rescript`, ["build", "-w", "--help"], {
@@ -119,30 +120,30 @@ console.log("@@ done");
119
120
console . groupEnd ( ) ;
120
121
121
122
// Shows build help with -h arg
122
- console . group ( "build -h" ) ;
123
- console . log ( "@@ begin " ) ;
124
- out = child_process . spawnSync ( `../../../rescript` , [ "build" , "-h" ] , {
125
- encoding : "utf8" ,
126
- cwd : __dirname ,
127
- } ) ;
128
- assert . equal ( out . stdout , buildHelp ) ;
129
- assert . equal ( out . stderr , "" ) ;
130
- assert . equal ( out . status , 0 ) ;
131
- console . log ( "@@ done " ) ;
132
- console . groupEnd ( ) ;
133
-
134
- // Exits with build help with unknown arg
135
- console . group ( "build -foo" ) ;
136
- console . log ( "@@ begin " ) ;
137
- out = child_process . spawnSync ( `../../../rescript` , [ "build" , "-foo" ] , {
138
- encoding : "utf8" ,
139
- cwd : __dirname ,
140
- } ) ;
141
- assert . equal ( out . stdout , "" ) ;
142
- assert . equal ( out . stderr , 'Error: Unknown option "-foo".\n' + buildHelp ) ;
143
- assert . equal ( out . status , 2 ) ;
144
- console . log ( "@@ done " ) ;
145
- console . groupEnd ( ) ;
123
+ // console.group("build -h");
124
+ // console.log("@@ begin ");
125
+ // out = child_process.spawnSync(`../../../rescript`, ["build", "-h"], {
126
+ // encoding: "utf8",
127
+ // cwd: __dirname,
128
+ // });
129
+ // assert.equal(out.stdout, buildHelp);
130
+ // assert.equal(out.stderr, "");
131
+ // assert.equal(out.status, 0);
132
+ // console.log("@@ done ");
133
+ // console.groupEnd();
134
+ //
135
+ // // Exits with build help with unknown arg
136
+ // console.group("build -foo");
137
+ // console.log("@@ begin ");
138
+ // out = child_process.spawnSync(`../../../rescript`, ["build", "-foo"], {
139
+ // encoding: "utf8",
140
+ // cwd: __dirname,
141
+ // });
142
+ // assert.equal(out.stdout, "");
143
+ // assert.equal(out.stderr, 'Error: Unknown option "-foo".\n' + buildHelp);
144
+ // assert.equal(out.status, 2);
145
+ // console.log("@@ done ");
146
+ // console.groupEnd();
146
147
147
148
// Shows cli help with --help arg
148
149
console . group ( "--help" ) ;
0 commit comments