Skip to content

Commit

Permalink
Merge pull request #16770 from qmonmert/cypress/warning
Browse files Browse the repository at this point in the history
Cypress: remove warning
  • Loading branch information
DanielFran authored Oct 21, 2021
2 parents c5fbafb + e81bc84 commit 56af924
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@

// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)
import fs = require('fs');;
import fs = require('fs');
import { lighthouse, pa11y, prepareAudit } from 'cypress-audit';
import ReportGenerator = require('lighthouse/report/generator/report-generator');
/**
* @type {Cypress.PluginConfig}
*/
module.exports = (on, config) => {
module.exports = (on<%_ if (cypressCoverage) { _%>, config<%_ } _%>) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
<%_ if (cypressCoverage) { _%>// `config` is the resolved Cypress config<%_ } _%>
on('before:browser:launch', (browser, launchOptions) => {
prepareAudit(launchOptions);
if (browser.name === 'chrome' && browser.isHeadless) {
Expand Down

0 comments on commit 56af924

Please sign in to comment.