Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

making CR call behave like carriage return for non tty

sebv8b10b9fcfcda
diff --git a/lib/reporters/base.js b/lib/reporters/base.js
index 370aba22..de17897b 100644
--- a/lib/reporters/base.js
+++ b/lib/reporters/base.js
@@ -141,7 +141,7 @@ exports.cursor = {
exports.cursor.deleteLine();
exports.cursor.beginningOfLine();
} else {
- process.stdout.write('\n');
+ process.stdout.write('\r');
}
}
};