| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| 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 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments