diff --git a/lib/runner.js b/lib/runner.js index f360802..04a24ae 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -157,7 +157,7 @@ async function _executeTest(url, options) { const getScore = (cat) => (lhr.categories && lhr.categories[cat] && lhr.categories[cat].score) ? lhr.categories[cat].score * 100 : 0; const getMetric = (aud) => (lhr.audits && lhr.audits[aud] && lhr.audits[aud].numericValue) ? lhr.audits[aud].numericValue : 0; - const summary = { + let summary = { id: testId, url: lhr.finalUrl || url, timestamp: lhr.fetchTime || new Date().toISOString(), @@ -223,7 +223,7 @@ async function _executeTest(url, options) { // Use High-Res frames if available, otherwise fallback to Lighthouse thumbnails const filmstripData = (highResFrames && highResFrames.length > 5) ? highResFrames : (lhr.audits['screenshot-thumbnails']?.details?.items || []); - const summary = { + summary = { id: testId, url: lhr.finalUrl || url, timestamp: lhr.fetchTime || new Date().toISOString(),