Skip to content

Commit 04ec768

Browse files
authored
feat(cli): make test file hyperlink (#5078)
1 parent f0759ca commit 04ec768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mocha/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class Cli extends Base {
200200

201201
// explicitly show file with error
202202
if (test.file) {
203-
log += `\n${output.styles.basic(figures.circle)} ${output.styles.section('File:')} ${output.styles.basic(test.file)}\n`
203+
log += `\n${output.styles.basic(figures.circle)} ${output.styles.section('File:')} file://${test.file}\n`
204204
}
205205

206206
const steps = test.steps || (test.ctx && test.ctx.test.steps)

0 commit comments

Comments
 (0)