Skip to content

Commit

Permalink
Adjust cypress coverage template. (#17507)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Jan 6, 2022
1 parent 3f8c08e commit 67a9c99
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ import ReportGenerator = require('lighthouse/report/generator/report-generator')
/**
* @type {Cypress.PluginConfig}
*/
module.exports = (on<%_ if (cypressCoverage) { _%>, config<%_ } _%>) => {
module.exports = (on<% if (cypressCoverage) { %>, config<% } %>) => {
// `on` is used to hook into various events Cypress emits
<%_ if (cypressCoverage) { _%>// `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 67a9c99

Please sign in to comment.