mfrachet / cypress-audit

⚡ Run Lighthouse and Pa11y audits directly in your E2E test suites
https://mfrachet.github.io/cypress-audit/
MIT License
351 stars 44 forks source link

Typescript: compilation error when using plugin with and Cypress >= 13.5.1 (no exported member BrowserLaunchOptions) #235

Open mmisty opened 7 months ago

mmisty commented 7 months ago

What does not work? running tsc for the project using plugin throws error:

node_modules/@cypress-audit/lighthouse/index.d.ts:44:26 - error TS2724: 'Cypress' has no exported member named 'BrowserLaunchOptions'. Did you mean 'BeforeBrowserLaunchOptions'?

44   launchOptions: Cypress.BrowserLaunchOptions
                            ~~~~~~~~~~~~~~~~~~~~

Found 1 error in node_modules/@cypress-audit/lighthouse/index.d.ts:44

How to reproduce?

Expected behavior No error when tsc ran with skipLibCheck=false