@@ -63,7 +63,7 @@ describe('Basic end-to-end Workflow', function () {
63
63
'build' ,
64
64
'--silent'
65
65
] ) . then ( function ( ) {
66
- expect ( fs . existsSync ( path . join ( process . cwd ( ) , 'dist' ) ) ) ;
66
+ expect ( fs . existsSync ( path . join ( process . cwd ( ) , 'dist' ) ) ) . to . be . equal ( true ) ;
67
67
} ) ;
68
68
} ) ;
69
69
@@ -174,8 +174,37 @@ describe('Basic end-to-end Workflow', function () {
174
174
expect ( result . exitCode ) . to . be . equal ( 0 ) ;
175
175
176
176
// Clean `tmp` folder
177
- process . chdir ( path . resolve ( root , '..' ) ) ;
178
- sh . rm ( '-rf' , './tmp' ) ; // tmp.teardown takes too long
177
+ // process.chdir(path.resolve(root, '..'));
178
+ // sh.rm('-rf', './tmp'); // tmp.teardown takes too long
179
+ } ) ;
180
+ } ) ;
181
+
182
+ it ( 'Turn on `noImplicitAny` in tsconfig.json and rebuild' , function ( done ) {
183
+ this . timeout ( 420000 ) ;
184
+
185
+ var configFilePath = path . join ( process . cwd ( ) , 'src' , 'tsconfig.json' ) ;
186
+ fs . readFile ( configFilePath , 'utf8' , function ( err , data ) {
187
+
188
+ var config = JSON . parse ( data ) ;
189
+ config . compilerOptions . noImplicitAny = true ;
190
+
191
+ fs . writeFile ( configFilePath , JSON . stringify ( config ) , function ( ) {
192
+ //clear the dist folder
193
+ sh . rm ( '-rf' , path . join ( process . cwd ( ) , 'dist' ) ) ;
194
+
195
+ return ng ( [
196
+ 'build' ,
197
+ '--silent'
198
+ ] ) . then ( function ( ) {
199
+ expect ( fs . existsSync ( path . join ( process . cwd ( ) , 'dist' ) ) ) . to . be . equal ( true ) ;
200
+ } )
201
+ . finally ( function ( ) {
202
+ // Clean `tmp` folder
203
+ process . chdir ( path . resolve ( root , '..' ) ) ;
204
+ sh . rm ( '-rf' , './tmp' ) ; // tmp.teardown takes too long
205
+ done ( ) ;
206
+ } ) ;
207
+ } ) ;
179
208
} ) ;
180
209
} ) ;
181
210
0 commit comments