mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
Fix Runner: Use correct import for chrome-launcher
This commit is contained in:
@@ -11,7 +11,7 @@ const path = require('path');
|
|||||||
async function runTest(url, options = {}) {
|
async function runTest(url, options = {}) {
|
||||||
// Dynamically import dependencies (ESM)
|
// Dynamically import dependencies (ESM)
|
||||||
const { default: lighthouse } = await import('lighthouse');
|
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 { v4: uuidv4 } = await import('uuid');
|
||||||
|
|
||||||
const isMobile = options.isMobile ?? true; // Default to mobile
|
const isMobile = options.isMobile ?? true; // Default to mobile
|
||||||
|
|||||||
Reference in New Issue
Block a user