Skip to content

Commit e593c94

Browse files
committed
update playwright-lighthouse to 3.2.6
1 parent d7d17c3 commit e593c94

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/lighthouse/lighthouse.spec.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import path from 'path'
22
import { playAudit } from 'playwright-lighthouse'
3-
import {
4-
playwrightLighthouseTest,
5-
getScores,
6-
writeCsvResult,
7-
writeHtmlListEntryWithRetry,
8-
LighthouseResult,
9-
writeScoresToJson,
10-
} from 'lighthouse-reporting'
3+
import { playwrightLighthouseTest, getScores, writeCsvResult, writeHtmlListEntryWithRetry, writeScoresToJson } from 'lighthouse-reporting'
114

125
playwrightLighthouseTest.setTimeout(60000)
136
const lhScoresDir = path.join(process.cwd(), process.env.LH_SCORES_DIR || 'lh-scores')
@@ -27,7 +20,7 @@ lighthousePages.forEach(({ name, url }) => {
2720

2821
context // let playwright initialize context
2922

30-
const result: LighthouseResult = await playAudit({
23+
const result = await playAudit({
3124
url: baseURL + url,
3225
port,
3326
thresholds,

0 commit comments

Comments
 (0)