Skip to content

Commit

Permalink
chore: fix results formatting for missing totalDuration (cypress-io#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 authored Feb 25, 2025
1 parent 01868f1 commit f465355
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104946,7 +104946,7 @@ const generateSummary = async (testResults) => {
`${testResults.totalFailed}`,
`${testResults.totalPending}`,
`${testResults.totalSkipped}`,
`${testResults.totalDuration / 1000}s` || ''
`${(testResults.totalDuration || 0) / 1000}s`
]

const summaryTitle = core.getInput('summary-title')
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ const generateSummary = async (testResults) => {
`${testResults.totalFailed}`,
`${testResults.totalPending}`,
`${testResults.totalSkipped}`,
`${testResults.totalDuration / 1000}s` || ''
`${(testResults.totalDuration || 0) / 1000}s`
]

const summaryTitle = core.getInput('summary-title')
Expand Down

0 comments on commit f465355

Please sign in to comment.