Skip to content

Commit

Permalink
refactor: improve test duration pretty output
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jun 29, 2023
1 parent 8490f77 commit 6a8a18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reporters/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class SpecReporter extends BaseReporter {
const message = this.#getTestMessage(payload)
const prefix = payload.isPinned ? cliui.colors.yellow('[PINNED] ') : ''
const indentation = this.currentFileName || this.currentGroupName ? ' ' : ''
const duration = cliui.colors.dim(`(${ms(payload.duration)})`)
const duration = cliui.colors.dim(`(${ms(Number(payload.duration.toFixed(2)))})`)
const retries =
payload.retryAttempt && payload.retryAttempt > 1
? cliui.colors.dim(`(x${payload.retryAttempt}) `)
Expand Down

0 comments on commit 6a8a18a

Please sign in to comment.