Skip to content

Commit

Permalink
Check cypress reporters for null before invoking onRunComplete (#778)
Browse files Browse the repository at this point in the history
Fixes: #744

Signed-off-by: Chris Danna <[email protected]>
  • Loading branch information
chrisdanna authored Mar 29, 2022
1 parent 50de58e commit dd87398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress-accessibility-checker/src/lib/ACTasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ let ACTasks = module.exports = {
},

onRunComplete: () => {
ACTasks.reporterHTML.onRunComplete();
ACTasks.reporterJSON.onRunComplete();
ACTasks.reporterCSV.onRunComplete();
ACTasks.reporterHTML && ACTasks.reporterHTML.onRunComplete();
ACTasks.reporterJSON && ACTasks.reporterJSON.onRunComplete();
ACTasks.reporterCSV && ACTasks.reporterCSV.onRunComplete();
return true;
},

Expand Down

0 comments on commit dd87398

Please sign in to comment.