Skip to content

Commit

Permalink
chore: disable color in config tests
Browse files Browse the repository at this point in the history
The logging output was making bare string assertions fail
  • Loading branch information
wraithgar committed May 9, 2024
1 parent 2ec2e75 commit 67ebb66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions tap-snapshots/test/lib/commands/config.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
exports[`test/lib/commands/config.js TAP config list --json > output matches snapshot 1`] = `
{
"cache": "{CACHE}",
"color": {COLOR},
"json": true,
"projectloaded": "yes",
"userloaded": "yes",
Expand All @@ -29,7 +30,6 @@ exports[`test/lib/commands/config.js TAP config list --json > output matches sna
"call": "",
"cert": null,
"cidr": null,
"color": {COLOR},
"commit-hooks": true,
"cpu": null,
"depth": null,
Expand Down Expand Up @@ -192,7 +192,7 @@ cafile = null
call = ""
cert = null
cidr = null
color = {COLOR}
; color = {COLOR}
commit-hooks = true
cpu = null
depth = null
Expand Down Expand Up @@ -345,6 +345,7 @@ projectloaded = "yes"
; "cli" config from command line options
cache = "{CACHE}"
color = {COLOR}
long = true
`

Expand All @@ -364,6 +365,7 @@ projectloaded = "yes"
; "cli" config from command line options
cache = "{CACHE}"
color = {COLOR}
; node bin location = {NODE-BIN-LOCATION}
; node version = {NODE-VERSION}
Expand All @@ -378,6 +380,7 @@ exports[`test/lib/commands/config.js TAP config list with publishConfig global >
; "cli" config from command line options
cache = "{CACHE}"
color = {COLOR}
global = true
; node bin location = {NODE-BIN-LOCATION}
Expand All @@ -393,6 +396,7 @@ exports[`test/lib/commands/config.js TAP config list with publishConfig local >
; "cli" config from command line options
cache = "{CACHE}"
color = {COLOR}
; node bin location = {NODE-BIN-LOCATION}
; node version = {NODE-VERSION}
Expand Down
2 changes: 1 addition & 1 deletion test/lib/commands/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const loadMockNpm = (t, opts = {}) => _loadMockNpm(t, {
// Reset configs that mock npm sets by default
'fetch-retries': undefined,
loglevel: undefined,
color: undefined,
color: false,
},
})

Expand Down

0 comments on commit 67ebb66

Please sign in to comment.