badeball / cypress-parallel

Cypress parallelization in any CI environment, without depending on external services
MIT License
17 stars 6 forks source link

Dependency Issue with Cypress 12 #7

Closed timo-y closed 1 year ago

timo-y commented 1 year ago

Hi, in my current project we rely on parallel execution of cypress tests. After updating to Cypress 12, the npm install only works, when adding the --force-flag. Though the package works, when installed. Is there any way the compatibility could be extended?

Regards Timo.

Current behavior

The current version doesn't resolve the dependencies:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @badeball/cypress-parallel@1.4.0
npm ERR! Found: cypress@12.17.3
npm ERR! node_modules/cypress
npm ERR!   dev cypress@"^12.17.3" from the root project
npm ERR!   peer cypress@"^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0" from @badeball/cypress-cucumber-preprocessor@18.0.5
npm ERR!   node_modules/@badeball/cypress-cucumber-preprocessor
npm ERR!     dev @badeball/cypress-cucumber-preprocessor@"^18.0.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer cypress@"^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0" from @badeball/cypress-parallel@1.4.0
npm ERR! node_modules/@badeball/cypress-parallel
npm ERR!   dev @badeball/cypress-parallel@"^1.4.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: cypress@10.11.0
npm ERR! node_modules/cypress
npm ERR!   peer cypress@"^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0" from @badeball/cypress-parallel@1.4.0
npm ERR!   node_modules/@badeball/cypress-parallel
npm ERR!     dev @badeball/cypress-parallel@"^1.4.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Desired behavior

Test code to reproduce

The package.json:

{
"devDependencies": {
        "@badeball/cypress-cucumber-preprocessor": "^18.0.5",
        "@badeball/cypress-parallel": "^1.4.0",
        "@cypress/browserify-preprocessor": "^3.0.3",
        "cypress": "^12.17.3"
}

Versions

badeball commented 1 year ago

Hey @timo-y, I've updated the peer dependencies in v2.0.0.