Skip to content

Commit f8bbdbb

Browse files
pbarbierocpojer
authored andcommitted
Fix progress bar in windows (#3626)
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.
1 parent 7e2e2b6 commit f8bbdbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/jest-cli/src/reporters/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ const renderTime = (runTime, estimatedTime, width) => {
160160
if (availableWidth >= 2) {
161161
time +=
162162
'\n' +
163-
chalk.green.inverse(' ').repeat(length) +
164-
chalk.white.inverse(' ').repeat(availableWidth - length);
163+
chalk.green('█').repeat(length) +
164+
chalk.white('█').repeat(availableWidth - length);
165165
}
166166
}
167167
return time;

0 commit comments

Comments
 (0)