We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07d8246 commit bad52bdCopy full SHA for bad52bd
src/reporters/fancy.js
@@ -65,8 +65,10 @@ export default class FancyReporter extends BasicReporter {
65
66
const tag = logObj.tag ? secondaryColor(logObj.tag) : ''
67
68
+ const formattedMessage = message.replace(/`([^`]+)`/g, (_, m) => chalk.cyan(m))
69
+
70
let line
- const left = this.filterAndJoin([type, message])
71
+ const left = this.filterAndJoin([type, formattedMessage])
72
const right = this.filterAndJoin([tag, date])
73
const space = width - stringWidth(left) - stringWidth(right) - 2
74
@@ -78,8 +80,6 @@ export default class FancyReporter extends BasicReporter {
78
80
79
81
line += additional.length ? '\n' + additional.join('\n') : ''
82
- line = line.replace(/`([^`]+)`/g, (_, m) => chalk.cyan(m))
-
83
return isBadge ? '\n' + line + '\n' : line
84
}
85
0 commit comments