Skip to content

Commit

Permalink
update playwright-lighthouse to 3.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrybyk committed Jan 10, 2024
1 parent d7d17c3 commit e593c94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 2 additions & 9 deletions tests/lighthouse/lighthouse.spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import path from 'path'
import { playAudit } from 'playwright-lighthouse'
import {
playwrightLighthouseTest,
getScores,
writeCsvResult,
writeHtmlListEntryWithRetry,
LighthouseResult,
writeScoresToJson,
} from 'lighthouse-reporting'
import { playwrightLighthouseTest, getScores, writeCsvResult, writeHtmlListEntryWithRetry, writeScoresToJson } from 'lighthouse-reporting'

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

context // let playwright initialize context

const result: LighthouseResult = await playAudit({
const result = await playAudit({
url: baseURL + url,
port,
thresholds,
Expand Down

0 comments on commit e593c94

Please sign in to comment.