Fix runner.js crash - basic check for LHR existence

This commit is contained in:
2025-12-29 10:56:00 +11:00
parent 390b9477f3
commit 8838a7af07

View File

@@ -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).');
}