diff --git a/lib/runner.js b/lib/runner.js index 8249241..587eea4 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -147,6 +147,9 @@ async function _executeTest(url, options) { // Prepare JSON Summary const lhr = runnerResult.lhr; + if (!lhr) { + throw new Error('Lighthouse failed to generate a report (no LHR).'); + }