From 8c23d441364f914d692b39fe95c735472588f13e Mon Sep 17 00:00:00 2001 From: Giovanni Date: Sat, 15 Jun 2024 10:13:33 +0200 Subject: [PATCH] test_runner: adding colors to the xs and dots in the test runner --- lib/internal/test_runner/reporter/dot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/test_runner/reporter/dot.js b/lib/internal/test_runner/reporter/dot.js index e9ba0b8dc7bd11..1e581f7a337845 100644 --- a/lib/internal/test_runner/reporter/dot.js +++ b/lib/internal/test_runner/reporter/dot.js @@ -12,10 +12,10 @@ module.exports = async function* dot(source) { const failedTests = []; for await (const { type, data } of source) { if (type === 'test:pass') { - yield '.'; + yield `${colors.green}.${colors.clear}`; } if (type === 'test:fail') { - yield 'X'; + yield `${colors.red}X${colors.clear}`; ArrayPrototypePush(failedTests, data); } if ((type === 'test:fail' || type === 'test:pass') && ++count === columns) {