diff --git a/lib/reporters/simple.js b/lib/reporters/simple.js index bcf59c0..bc7ad02 100644 --- a/lib/reporters/simple.js +++ b/lib/reporters/simple.js @@ -32,8 +32,12 @@ function simpleReporter(results) { function clearPassed() { if (lastPassed) { - process.stdout.clearLine(); - process.stdout.cursorTo(0); + if (process.stdout.isTTY) { + process.stdout.clearLine(); + process.stdout.cursorTo(0); + } else { + process.stdout.write('\n'); + } } } }