Skip to content

Commit

Permalink
fix(fancy): use proper color for log paths
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 2, 2018
1 parent ca0df17 commit 7c75283
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/reporters/fancy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ export default class FancyReporter extends BasicReporter {
}

formatStack (stack) {
const color1 = chalkColor('cyan')
const color2 = chalkColor('grey')
const color1 = chalkColor('grey')
const color2 = chalkColor('cyan')
const color3 = chalkColor('white')

return '\n' + color2(' at ') + parseStack(stack)
.map(line => color1(line.replace(/(\(.*\))/, (m, p1) => color2(p1))))
.join(color2(' ↲\n at '))
return '\n' + color1(' at ') + parseStack(stack)
.map(line => color2(line.replace(/(\(.*\))/, (m, p1) => color3(p1))))
.join(color1(' ↲\n at '))
}

typeColor (type, level) {
Expand Down

0 comments on commit 7c75283

Please sign in to comment.