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.