import { eosIsReady , startEos , runTests , stopContainer , buildAll } from './utils' ; import { GitIgnoreManager } from '../gitignoreManager' ; import { ConfigManager } from '../configManager' ; import { sleep } from '../utils' ; note author Kevin Brown <github.com/thekevinbrown>
 *  author Mitch Pierias <github.com/MitchPierias>
  const run = async ( ) => { await ConfigManager . initWithDefaults ( ) ; const args = process . argv ; if ( await eosIsReady ( ) ) { await stopContainer ( ) ; } if ( ! ( await eosIsReady ( ) ) ) { await startEos ( ) ; } if ( ! args . includes ( 'skip-build' ) ) { await buildAll ( ) ; } else { await sleep ( 4000 ) ; } await runTests ( ) ; if ( ! ConfigManager . keepAlive ) { await stopContainer ( ) ; } } ; run ( ) . catch ( async ( error ) => { process . exitCode = 1 ; console . log ( error ) ; if ( ! ConfigManager . keepAlive && ( await eosIsReady ( ) ) ) { await stopContainer ( ) ; } } ) ;