Skip to content

Commit

Permalink
Fix progress bar in windows (jestjs#3626)
Browse files Browse the repository at this point in the history
On windows (cmd, powershell, and cmder) the progress bar was broken. The issue is windows doesnt fully support inverse, and so just renders blank spaces. Changing it to a block character (ascii 219) and removing the inverse fixes this, and should still look the same across other terminals that worked before this change.
  • Loading branch information
pbarbiero authored and cpojer committed May 23, 2017
1 parent 526c00c commit b6a63a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jest-cli/src/reporters/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ const renderTime = (runTime, estimatedTime, width) => {
if (availableWidth >= 2) {
time +=
'\n' +
chalk.green.inverse(' ').repeat(length) +
chalk.white.inverse(' ').repeat(availableWidth - length);
chalk.green('█').repeat(length) +
chalk.white('█').repeat(availableWidth - length);
}
}
return time;
Expand Down

0 comments on commit b6a63a0

Please sign in to comment.