File tree 1 file changed +7
-15
lines changed
1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -250,37 +250,29 @@ async function runSteps(
250
250
}
251
251
}
252
252
253
- async function runSetup ( absoluteName : string ) {
253
+ function runSetup ( absoluteName : string ) : Promise < void > {
254
254
const module = require ( absoluteName ) ;
255
255
256
- await ( typeof module === 'function' ? module : module . default ) ( ) ;
256
+ return ( typeof module === 'function' ? module : module . default ) ( ) ;
257
257
}
258
258
259
259
/**
260
260
* Run a file from the projects root directory in a subprocess via launchTestProcess().
261
261
*/
262
- async function runInitializer ( absoluteName : string ) {
262
+ function runInitializer ( absoluteName : string ) : Promise < void > {
263
263
process . chdir ( getGlobalVariable ( 'projects-root' ) ) ;
264
264
265
- await launchTestProcess ( absoluteName ) ;
265
+ return launchTestProcess ( absoluteName ) ;
266
266
}
267
267
268
268
/**
269
269
* Run a file from the main 'test-project' directory in a subprocess via launchTestProcess().
270
270
*/
271
- async function runTest ( absoluteName : string ) {
271
+ async function runTest ( absoluteName : string ) : Promise < void > {
272
272
process . chdir ( join ( getGlobalVariable ( 'projects-root' ) , 'test-project' ) ) ;
273
273
274
- try {
275
- await launchTestProcess ( absoluteName ) ;
276
- } finally {
277
- logStack . push ( new logging . NullLogger ( ) ) ;
278
- try {
279
- await gitClean ( ) ;
280
- } finally {
281
- logStack . pop ( ) ;
282
- }
283
- }
274
+ await launchTestProcess ( absoluteName ) ;
275
+ await gitClean ( ) ;
284
276
}
285
277
286
278
function printHeader (
You can’t perform that action at this time.
0 commit comments