import chalk from 'chalk' const totalreporter = () => { let success = 0, fail = 0 return { success: (test) => { success++ }, fail: (test, e) => { fail++ }, msg: () => `${chalk.redBright(`Fail: ${fail}`)} ${chalk.greenBright(`Sucess: ${success}`)} ${chalk.yellowBright(`Ratio ${(success / (success + fail) * 100).toFixed(0)}%`)}` } } export { totalreporter }