Skip to content

Commit 88ca66f

Browse files
committed
test: do not add colors functions in CI output
1 parent ad12897 commit 88ca66f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

npm-audit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h5 class="card-title">
5555
<div class="card">
5656
<div class="card-body">
5757
<h5 class="card-title">
58-
October 4th 2020, 10:28:54 am
58+
October 4th 2020, 10:32:11 am
5959
</h5>
6060
<p class="card-text">Last updated</p>
6161
</div>

test-helpers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ export const info = process.env.CI ? '[ info ]' : '[ blue(info) ]'
1515
export const success = process.env.CI ? '[ success ]' : '[ green(success) ]'
1616
export const error = process.env.CI ? '[ error ]' : '[ red(error) ]'
1717
export const warning = process.env.CI ? '[ warn ]' : '[ yellow(warn) ]'
18-
export const dimYellow = (value: string) => `dim(yellow(${value}))`
18+
export const dimYellow = (value: string) => (process.env.CI ? value : `dim(yellow(${value}))`)

0 commit comments

Comments
 (0)