diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index 5015f2d1c..b5bd572bb 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -1,7 +1,6 @@ -let percyHealthCheck = require("@percy/cypress/task"); +/* eslint-disable import/no-commonjs */ +const percyHealthCheck = require('@percy/cypress/task'); -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on("task", percyHealthCheck); -}; \ No newline at end of file +module.exports = (on) => { + on('task', percyHealthCheck); +};