From 017ae4812b5eccf2e4437c38d2f8f7aefa207c7a Mon Sep 17 00:00:00 2001 From: Adam Raine <6752989+adamraine@users.noreply.github.com> Date: Tue, 20 Sep 2022 12:40:55 -0700 Subject: [PATCH] fix: remove Lighthouse types (#307) --- src/lighthouse/LighthouseRunnerExtension.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lighthouse/LighthouseRunnerExtension.ts b/src/lighthouse/LighthouseRunnerExtension.ts index db8e88fa..4b53173e 100644 --- a/src/lighthouse/LighthouseRunnerExtension.ts +++ b/src/lighthouse/LighthouseRunnerExtension.ts @@ -18,14 +18,13 @@ import { PuppeteerRunnerExtension } from '../PuppeteerRunnerExtension.js'; import type { Step, UserFlow } from '../Schema.js'; import { isMobileFlow, isNavigationStep } from './helpers.js'; -import type FlowResult from 'lighthouse/types/lhr/flow'; - export class LighthouseRunnerExtension extends PuppeteerRunnerExtension { #isTimespanRunning = false; #isNavigationRunning = false; #lhFlow?: any; - async createFlowResult(): Promise { + // TODO: Use Lighthouse types once the peer dependency is defined. + async createFlowResult(): Promise { if (!this.#lhFlow) { throw new Error('Cannot get flow result before running the flow'); }