diff --git a/cypress.config.js b/cypress.config.js index 6100b0e39..8737c2352 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -1,6 +1,6 @@ // eslint-disable-next-line import/no-extraneous-dependencies const { defineConfig } = require("cypress"); -const plugins = require("./cypress/plugins"); +const plugins = require("./cypress/plugins").default; module.exports = defineConfig({ projectId: "4trcdv", diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index adbbaf7f5..128709caa 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -1,7 +1,7 @@ -const task = require("@cypress/code-coverage/task"); -const webpackPreprocessor = require("@cypress/webpack-preprocessor"); +import task from "@cypress/code-coverage/task"; +import webpackPreprocessor from "@cypress/webpack-preprocessor"; -module.exports = (on, config) => { +export default (on, config) => { task(on, config); const options = {