Fix Runner: Use correct import for chrome-launcher

This commit is contained in:
2025-12-27 23:50:50 +11:00
parent 931c773dfd
commit 82c4e9f7c1

View File

@@ -11,7 +11,7 @@ const path = require('path');
async function runTest(url, options = {}) {
// Dynamically import dependencies (ESM)
const { default: lighthouse } = await import('lighthouse');
const { default: chromeLauncher } = await import('chrome-launcher');
const chromeLauncher = await import('chrome-launcher');
const { v4: uuidv4 } = await import('uuid');
const isMobile = options.isMobile ?? true; // Default to mobile