Skip to content

Commit

Permalink
update matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
baev committed Jan 7, 2025
1 parent 221e990 commit dd04b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/allure-js-commons/src/sdk/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const getStatusFromError = (error: Partial<Error>): Status => {
case error.stack && /@vitest\/expect/gi.test(error.stack):
case error.stack && /playwright\/lib\/matchers\/expect\.js/gi.test(error.stack):
case "matcherResult" in error:
case "expected" in error && "actual" in error:
case "inspect" in error && typeof error.inspect === "function":
return Status.FAILED;
default:
return Status.BROKEN;
Expand Down

0 comments on commit dd04b7d

Please sign in to comment.