From ded25bac55a26d63d33f45875a342f2c6ba7dd28 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 19 Sep 2023 12:14:56 +0100 Subject: [PATCH] Lint fixes --- .../src/lighthouse/index.ts | 5 ++++- .../src/metrics/index.ts | 15 +++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/e2e-test-utils-playwright/src/lighthouse/index.ts b/packages/e2e-test-utils-playwright/src/lighthouse/index.ts index 39df162f9c3e4..274799db6c9c2 100644 --- a/packages/e2e-test-utils-playwright/src/lighthouse/index.ts +++ b/packages/e2e-test-utils-playwright/src/lighthouse/index.ts @@ -5,7 +5,10 @@ import type { Page } from '@playwright/test'; import * as lighthouse from 'lighthouse/core/index.cjs'; export class Lighthouse { - constructor( public readonly page: Page, public readonly port: number ) { + constructor( + public readonly page: Page, + public readonly port: number + ) { this.page = page; this.port = port; } diff --git a/packages/e2e-test-utils-playwright/src/metrics/index.ts b/packages/e2e-test-utils-playwright/src/metrics/index.ts index 47cc0208092af..d90a2f34fc510 100644 --- a/packages/e2e-test-utils-playwright/src/metrics/index.ts +++ b/packages/e2e-test-utils-playwright/src/metrics/index.ts @@ -20,12 +20,15 @@ export class Metrics { performance.getEntriesByType( 'navigation' ) as PerformanceNavigationTiming[] - )[ 0 ].serverTiming.reduce( ( acc, entry ) => { - if ( f.length === 0 || f.includes( entry.name ) ) { - acc[ entry.name ] = entry.duration; - } - return acc; - }, {} as Record< string, number > ), + )[ 0 ].serverTiming.reduce( + ( acc, entry ) => { + if ( f.length === 0 || f.includes( entry.name ) ) { + acc[ entry.name ] = entry.duration; + } + return acc; + }, + {} as Record< string, number > + ), fields ); }