From 4ccb3e46329929662ef2372d7523f98e3ec096ea Mon Sep 17 00:00:00 2001 From: shubhamparikh2704 Date: Tue, 19 Aug 2025 14:48:44 +0530 Subject: [PATCH] reverting the ES module fixes --- cypress.config.ts | 2 +- cypress/support/commands.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress.config.ts b/cypress.config.ts index 7628288ff..4182d92a8 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,5 +1,5 @@ import { defineConfig } from 'cypress'; -import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin.js'; +import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin'; import coverage from '@cypress/code-coverage/task'; import eyesPlugin from '@applitools/eyes-cypress'; export default eyesPlugin( diff --git a/cypress/support/commands.js b/cypress/support/commands.js index b2ee81722..6fc1fe17d 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -24,7 +24,7 @@ // -- This is will overwrite an existing command -- // Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) -import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command.js'; +import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command'; // The SSIM comparison method can be used if the pixelmatch is throwing lots of false positives. // SSIM actually does not catch minute changes in the image, so it is not as accurate as pixelmatch.