diff --git a/lib/postRunCleanup.js b/lib/postRunCleanup.js index 5774eeca..38d456f7 100644 --- a/lib/postRunCleanup.js +++ b/lib/postRunCleanup.js @@ -53,6 +53,7 @@ module.exports = function (config, approvedFilesMap) { }); // only pull the ones that aren't already in the 'normalizedApprovedFilePaths' if (staleApprovals.length) { + process.exitCode = 1 // make sure the process reports this failure throw new Error('ERROR: Found stale approvals files: \n - ' + staleApprovals.join('\n - ') + '\n'); } }