process . on ( 'unhandledRejection' , ( error ) => { console . log ( 'unhandledRejection' , error . test ) ; } ) ; const cwd = process . cwd ( ) ; const resolve = require ( 'path' ) . resolve ; require ( 'glob' ) ( './spec/**/*-spec.ts' , ( err , files ) => { if ( err ) { throw err ; } files . forEach ( ( file ) => require ( resolve ( cwd , file ) ) ) ; } ) ;