From ac625bdc7f898dbc8d1ad928b117a766a89c5e25 Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Tue, 25 Mar 2025 18:24:25 +0900 Subject: [PATCH] test(e2e): fix Cypress config for Node.JS v20.19.0 Node.JS v20.19.0 breaks `import '@cypress/code-coverage/task'` in the `cypress.config.ts` for some reason (this is probably due to the new `experimental-require-module` feature that is enabled by default in Node.JS v20.19.0). As a work-around, we can change this to `@cypress/code-coverage/task.js`. See: https://github.com/cypress-io/code-coverage/pull/940 See: https://nodejs.org/en/blog/release/v20.19.0 --- cypress.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress.config.ts b/cypress.config.ts index d077ba915..50ea940e9 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,8 +1,8 @@ import eyesPlugin from '@applitools/eyes-cypress'; import { registerArgosTask } from '@argos-ci/cypress/task'; -import coverage from '@cypress/code-coverage/task'; +import coverage from '@cypress/code-coverage/task.js'; import { defineConfig } from 'cypress'; -import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin'; +import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin.js'; import cypressSplit from 'cypress-split'; export default eyesPlugin(