[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix: ensure project names are readable in dark terminals (#7371)

authored by

Ryan Grove and committed by
GitHub
(Feb 10, 2025, 5:37 PM +0100) bb94c19f 6a9cb9cf

+3 -3
+1 -1
packages/ui/client/utils/task.ts
··· 25 25 const index = name 26 26 .split('') 27 27 .reduce((acc, v, idx) => acc + v.charCodeAt(0) + idx, 0) 28 - const colors = ['blue', 'yellow', 'cyan', 'green', 'magenta'] 28 + const colors = ['yellow', 'cyan', 'green', 'magenta'] 29 29 return colors[index % colors.length] 30 30 }
+2 -2
packages/vitest/src/node/reporters/renderers/utils.ts
··· 223 223 .split('') 224 224 .reduce((acc, v, idx) => acc + v.charCodeAt(0) + idx, 0) 225 225 226 - const colors = [c.black, c.yellow, c.cyan, c.green, c.magenta] 226 + const colors = [c.bgYellow, c.bgCyan, c.bgGreen, c.bgMagenta] 227 227 228 - return c.inverse(colors[index % colors.length](` ${name} `)) + suffix 228 + return c.black(colors[index % colors.length](` ${name} `)) + suffix 229 229 } 230 230 231 231 export function withLabel(color: 'red' | 'green' | 'blue' | 'cyan' | 'yellow', label: string, message?: string) {