Skip to content

Commit

Permalink
test_runner: adding colors to the xs and dots in the test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni committed Jun 15, 2024
1 parent e62cdb1 commit 8c23d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/test_runner/reporter/dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8c23d44

Please sign in to comment.