currents-dev / cli

0 stars 0 forks source link

`@currents/cli` v3.1.3 is incompatible with Cypress v12.1.0 #8

Closed rszalski closed 1 year ago

rszalski commented 1 year ago

Hello, we have run into an issue when upgrading Cypress to v12.1.0. When running Cypress tests through @currents/cli we receive the following error:

Integrity check failed with expected line number 1 but got 79
Error: 
  We detected an issue with the integrity of the Cypress binary. It may have been modified and cannot run. We recommend re-installing the Cypress binary with:

  `cypress cache clear && cypress install`

    at stackIntegrityCheck (<embedded>:1:1646)
    at integrityCheck (<embedded>:1:5569)
    at Object.<anonymous> (<embedded>:2844:962996)
    at snapshotRequire (evalmachine.<anonymous>:1:749187)
    at runWithSnapshot (evalmachine.<anonymous>:1:757764)
    at hookRequire (evalmachine.<anonymous>:1:758547)
    at startCypress (evalmachine.<anonymous>:1:758979)
    at evalmachine.<anonymous>:1:759290
    at v (/root/.cache/Cypress/12.1.0/Cypress/resources/app/index.js:79:14)
    at Object.<anonymous> (/root/.cache/Cypress/12.1.0/Cypress/resources/app/index.js:84:5)

Cypress v12.0.2 (previous version) works well. Issuing cypress cache clear && cypress install does not help.

I believe this is a similar issue to the one fixed for Cypress v11 where the internal cache structure got changed. I think I saw a more descriptive error when tweaking CYPRESS_CACHE_FOLDER that was related to some icons (potentially ./Cypress.app/Contents/Resources/app/packages/icons/dist/icons/icon_512x512.png).

Let me know if I can provide any more info. For now we'll be locking Cypress at v12.0.2 but would love to be able to use v12.1.0 and newer in the future.

agoldis commented 1 year ago

@rszalski Thanks for sharing! Please refer to this page for follow-ups: https://currents.dev/readme/guides/cypress-compatibility/cypress-12

agoldis commented 1 year ago

Please refer to the compatibility table to install the matching version of @currents/cli.

https://currents.dev/readme/guides/cypress-compatibility