Skip to content

Commit

Permalink
chore: undo project colors in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Sep 12, 2024
1 parent e64ebaf commit 2e6e96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vitest/src/node/reporters/renderers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,6 @@ export function formatProjectName(name: string | undefined, suffix = ' ') {
const index = name
.split('')
.reduce((acc, v, idx) => acc + v.charCodeAt(0) + idx, 0)
const colors = [c.bgBlue, c.bgYellow, c.bgCyan, c.bgGreen, c.bgMagenta]
return colors[index % colors.length](` ${c.white(name)} `) + suffix
const colors = [c.blue, c.yellow, c.cyan, c.green, c.magenta]
return colors[index % colors.length](`|${name}|`) + suffix
}

0 comments on commit 2e6e96a

Please sign in to comment.