diff --git a/cypress-accessibility-checker/src/lib/ACTasks.js b/cypress-accessibility-checker/src/lib/ACTasks.js index ccfa741ed..5fecdfe65 100644 --- a/cypress-accessibility-checker/src/lib/ACTasks.js +++ b/cypress-accessibility-checker/src/lib/ACTasks.js @@ -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; },