Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez committed Nov 28, 2024
1 parent 03a5a09 commit f15ea24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/datadog-instrumentations/src/cucumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ function getTestStatusFromRetries (testStatuses) {
}

function getErrorFromCucumberResult (cucumberResult) {
if (!cucumberResult.message || !cucumberResult.exception) {
return
}

const [message] = cucumberResult.message.split('\n')
const error = new Error(message)
error.type = cucumberResult.exception.type
Expand Down

0 comments on commit f15ea24

Please sign in to comment.