Skip to content

Commit

Permalink
fix: update Cypress configuration to use ES module syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasGross committed Jan 7, 2025
1 parent 9994a03 commit 84a1c10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down

0 comments on commit 84a1c10

Please sign in to comment.