File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
fixtures/test-runner/output Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2020ℹ output | [31m [34m | [31m [34m | [31m [34m |
2121ℹ [32mcoverage-width-80-color.mjs [34m | [32m100.00[34m | [32m 100.00[34m | [32m 100.00[34m |
2222ℹ ------------------------------------------------------------------------------
23- ℹ all files | [33m 61.33 [34m | [32m 100.00[34m | [31m 0.00[34m |
23+ ℹ all files | [33m 62.34 [34m | [32m 100.00[34m | [31m 0.00[34m |
2424ℹ ------------------------------------------------------------------------------
2525ℹ end of coverage report
2626[39m
Original file line number Diff line number Diff line change 2121ℹ output | [31m [34m | [31m [34m | [31m [34m |
2222ℹ [32mcoverage-width-80-uncovered-lines-color.mjs [34m | [32m100.00[34m | [32m 100.00[34m | [32m 100.00[34m |
2323ℹ --------------------------------------------------------------------------------------------------
24- ℹ all files | [33m 52.91 [34m | [33m 60.00[34m | [31m 1.61[34m |
24+ ℹ all files | [33m 53.24 [34m | [33m 60.00[34m | [31m 1.61[34m |
2525ℹ --------------------------------------------------------------------------------------------------
2626ℹ end of coverage report
2727[39m
Original file line number Diff line number Diff line change 1+ // Flags: --expose-internals
12import * as common from '../common/index.mjs' ;
23import * as fixtures from '../common/fixtures.mjs' ;
34import * as snapshot from '../common/assertSnapshot.js' ;
45import { describe , it } from 'node:test' ;
56import { hostname } from 'node:os' ;
67import { chdir , cwd } from 'node:process' ;
78import { fileURLToPath } from 'node:url' ;
9+ import internalTTy from 'internal/tty' ;
810
911const skipForceColors =
1012 process . config . variables . icu_gyp_path !== 'tools/icu/icu-generic.gyp' ||
1113 process . config . variables . node_shared_openssl ;
1214
13- const canColorize = process . stderr ?. isTTY && (
14- typeof process . stderr ?. getColorDepth === 'function' ?
15- process . stderr ?. getColorDepth ( ) > 2 : true ) ;
15+ const canColorize = internalTTy . getColorDepth ( ) > 2 ;
1616const skipCoverageColors = ! canColorize ;
1717
1818function replaceTestDuration ( str ) {
You can’t perform that action at this time.
0 commit comments