From bbc07453f6756cb8938c622aa45754ef5998b62d Mon Sep 17 00:00:00 2001 From: Phillip Barbiero Date: Mon, 22 May 2017 14:57:10 -0500 Subject: [PATCH] Fix progress bar in windows 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. --- packages/jest-cli/src/reporters/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jest-cli/src/reporters/utils.js b/packages/jest-cli/src/reporters/utils.js index 615e64f9cd63..425c568e78c6 100644 --- a/packages/jest-cli/src/reporters/utils.js +++ b/packages/jest-cli/src/reporters/utils.js @@ -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;