File tree 3 files changed +5
-5
lines changed
fixtures/test-runner/output
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 20
20
ℹ output | [31m [34m | [31m [34m | [31m [34m |
21
21
ℹ [32mcoverage-width-80-color.mjs [34m | [32m100.00[34m | [32m 100.00[34m | [32m 100.00[34m |
22
22
ℹ ------------------------------------------------------------------------------
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 |
24
24
ℹ ------------------------------------------------------------------------------
25
25
ℹ end of coverage report
26
26
[39m
Original file line number Diff line number Diff line change 21
21
ℹ output | [31m [34m | [31m [34m | [31m [34m |
22
22
ℹ [32mcoverage-width-80-uncovered-lines-color.mjs [34m | [32m100.00[34m | [32m 100.00[34m | [32m 100.00[34m |
23
23
ℹ --------------------------------------------------------------------------------------------------
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 |
25
25
ℹ --------------------------------------------------------------------------------------------------
26
26
ℹ end of coverage report
27
27
[39m
Original file line number Diff line number Diff line change
1
+ // Flags: --expose-internals
1
2
import * as common from '../common/index.mjs' ;
2
3
import * as fixtures from '../common/fixtures.mjs' ;
3
4
import * as snapshot from '../common/assertSnapshot.js' ;
4
5
import { describe , it } from 'node:test' ;
5
6
import { hostname } from 'node:os' ;
6
7
import { chdir , cwd } from 'node:process' ;
7
8
import { fileURLToPath } from 'node:url' ;
9
+ import internalTTy from 'internal/tty' ;
8
10
9
11
const skipForceColors =
10
12
process . config . variables . icu_gyp_path !== 'tools/icu/icu-generic.gyp' ||
11
13
process . config . variables . node_shared_openssl ;
12
14
13
- const canColorize = process . stderr ?. isTTY && (
14
- typeof process . stderr ?. getColorDepth === 'function' ?
15
- process . stderr ?. getColorDepth ( ) > 2 : true ) ;
15
+ const canColorize = internalTTy . getColorDepth ( ) > 2 ;
16
16
const skipCoverageColors = ! canColorize ;
17
17
18
18
function replaceTestDuration ( str ) {
You can’t perform that action at this time.
0 commit comments