Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
runner.on('end', function(){
var obj = {
stats: self.stats,
tests: tests.map(clean),
failures: failures.map(clean),
passes: passes.map(clean)
};
console.log(cursor.resetLine + JSON.stringify(obj, null, 2));
runner.results = obj;
});
}
function log(msg) {
console.log(cursor.resetLine + msg);
}