A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nodejs/node/commit/4887213f2e below:

added colors to dot reporter · nodejs/node@4887213 · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+8

-5

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+8

-5

lines changed Original file line number Diff line number Diff line change

@@ -12,10 +12,10 @@ module.exports = async function* dot(source) {

12 12

const failedTests = [];

13 13

for await (const { type, data } of source) {

14 14

if (type === 'test:pass') {

15 -

yield '.';

15 +

yield `${colors.green}.${colors.clear}`;

16 16

}

17 17

if (type === 'test:fail') {

18 -

yield 'X';

18 +

yield `${colors.red}X${colors.clear}`;

19 19

ArrayPrototypePush(failedTests, data);

20 20

}

21 21

if ((type === 'test:fail' || type === 'test:pass') && ++count === columns) {

Original file line number Diff line number Diff line change

@@ -1,6 +1,9 @@

1 1

// Flags: --test-reporter=dot

2 2

'use strict';

3 3

process.stdout.columns = 30;

4 +

process.env.FORCE_COLOR = '1';

5 +

delete process.env.NODE_DISABLE_COLORS;

6 +

delete process.env.NO_COLOR;

4 7 5 8

const test = require('node:test');

6 9

const { setTimeout } = require('timers/promises');

Original file line number Diff line number Diff line change

@@ -1,3 +1,3 @@

1 -

..............................

2 -

.........................................

3 -

.............................

1 +

[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c

2 +

[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c

3 +

[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c[32m.c

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4