diff --git a/src/index.js b/src/index.js index 58a77d83..af1e9778 100644 --- a/src/index.js +++ b/src/index.js @@ -51,7 +51,7 @@ const getError = (id, expected, results) => { return `Expected category ${chalk.magenta( category.title, )} to be greater or equal to ${chalk.green(expected)} but got ${chalk.red( - category.score, + category.score !== null ? category.score : 'unknown', )}`; }; diff --git a/src/lighthouse.js b/src/lighthouse.js index d7d1d198..9a27d8a3 100644 --- a/src/lighthouse.js +++ b/src/lighthouse.js @@ -22,7 +22,12 @@ const runLighthouse = async (browserPath, url) => { log.setLevel(logLevel); chrome = await chromeLauncher.launch({ chromePath: browserPath, - chromeFlags: ['--headless', '--no-sandbox', '--disable-gpu'], + chromeFlags: [ + '--headless', + '--no-sandbox', + '--disable-gpu', + '--disable-dev-shm-usage', + ], logLevel, }); const results = await lighthouse(url, {