Skip to content

Commit

Permalink
fix: use more compatible string to clear the console
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Aug 18, 2018
1 parent 990aa5d commit 82ce410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reporters/fancy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class FancyReporter {
}

clear () {
this.stream.write('\x1b[2J\x1b[0f')
this.stream.write(process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H')
}

log (logObj) {
Expand Down

0 comments on commit 82ce410

Please sign in to comment.