build(docs-infra): upgrade lighthouse to 4.3.0 (#29904)

Also, log the Lighthouse version in `test-pwa-score` to aid in
debugging.

PR Close #29904
This commit is contained in:
George Kalpakas
2019-04-15 15:41:48 +03:00
committed by Alex Rickabaugh
parent ea70d41ac2
commit 4f9c935473
3 changed files with 116 additions and 49 deletions

View File

@ -105,6 +105,8 @@ function processResults(results, logFile) {
const categoryData = Object.keys(categories).map(name => categories[name]);
const maxTitleLen = Math.max(...categoryData.map(({title}) => title.length));
console.log('\nLighthouse version:', results.lhr.lighthouseVersion);
console.log('\nAudit scores:');
categoryData.forEach(({title, score}) => {
const paddedTitle = `${title}:`.padEnd(maxTitleLen + 1);