Skip to content
This repository has been archived by the owner on Aug 28, 2022. It is now read-only.

Commit

Permalink
fix(allure-reporter.ts): fixed null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ryparker committed Jul 6, 2020
1 parent 4922775 commit 0bbd59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/allure-reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default class AllureReporter {

const status = error.matcherResult ? Status.FAILED : Status.BROKEN;

const isSnapshotFailure = error.matcherResult.name === 'toMatchSnapshot';
const isSnapshotFailure = error.matcherResult?.name === 'toMatchSnapshot';

let message: string;
let trace: string;
Expand Down

0 comments on commit 0bbd59a

Please sign in to comment.