Skip to content

Commit ac625bd

Browse files
committed
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: cypress-io/code-coverage#940 See: https://nodejs.org/en/blog/release/v20.19.0
1 parent 40b85c3 commit ac625bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypress.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import eyesPlugin from '@applitools/eyes-cypress';
22
import { registerArgosTask } from '@argos-ci/cypress/task';
3-
import coverage from '@cypress/code-coverage/task';
3+
import coverage from '@cypress/code-coverage/task.js';
44
import { defineConfig } from 'cypress';
5-
import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin';
5+
import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin.js';
66
import cypressSplit from 'cypress-split';
77

88
export default eyesPlugin(

0 commit comments

Comments
 (0)