Skip to content

Commit 67ebb66

Browse files
committed
chore: disable color in config tests
The logging output was making bare string assertions fail
1 parent 2ec2e75 commit 67ebb66

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tap-snapshots/test/lib/commands/config.js.test.cjs

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
exports[`test/lib/commands/config.js TAP config list --json > output matches snapshot 1`] = `
99
{
1010
"cache": "{CACHE}",
11+
"color": {COLOR},
1112
"json": true,
1213
"projectloaded": "yes",
1314
"userloaded": "yes",
@@ -29,7 +30,6 @@ exports[`test/lib/commands/config.js TAP config list --json > output matches sna
2930
"call": "",
3031
"cert": null,
3132
"cidr": null,
32-
"color": {COLOR},
3333
"commit-hooks": true,
3434
"cpu": null,
3535
"depth": null,
@@ -192,7 +192,7 @@ cafile = null
192192
call = ""
193193
cert = null
194194
cidr = null
195-
color = {COLOR}
195+
; color = {COLOR}
196196
commit-hooks = true
197197
cpu = null
198198
depth = null
@@ -345,6 +345,7 @@ projectloaded = "yes"
345345
; "cli" config from command line options
346346
347347
cache = "{CACHE}"
348+
color = {COLOR}
348349
long = true
349350
`
350351

@@ -364,6 +365,7 @@ projectloaded = "yes"
364365
; "cli" config from command line options
365366
366367
cache = "{CACHE}"
368+
color = {COLOR}
367369
368370
; node bin location = {NODE-BIN-LOCATION}
369371
; node version = {NODE-VERSION}
@@ -378,6 +380,7 @@ exports[`test/lib/commands/config.js TAP config list with publishConfig global >
378380
; "cli" config from command line options
379381
380382
cache = "{CACHE}"
383+
color = {COLOR}
381384
global = true
382385
383386
; node bin location = {NODE-BIN-LOCATION}
@@ -393,6 +396,7 @@ exports[`test/lib/commands/config.js TAP config list with publishConfig local >
393396
; "cli" config from command line options
394397
395398
cache = "{CACHE}"
399+
color = {COLOR}
396400
397401
; node bin location = {NODE-BIN-LOCATION}
398402
; node version = {NODE-VERSION}

test/lib/commands/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const loadMockNpm = (t, opts = {}) => _loadMockNpm(t, {
3737
// Reset configs that mock npm sets by default
3838
'fetch-retries': undefined,
3939
loglevel: undefined,
40-
color: undefined,
40+
color: false,
4141
},
4242
})
4343

0 commit comments

Comments
 (0)