bahmutov / cypress-select-tests

User space solution for picking Cypress tests to run
97 stars 14 forks source link

Getting errors on installing cypress-select-tests 1.7.0 with cypress 7.0.1 #215

Closed alapanme closed 3 years ago

alapanme commented 3 years ago

I am getting a dependency conflict error :

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: cypress-automation@1.0.0
npm ERR! Found: cypress@7.0.1
npm ERR! node_modules/cypress
npm ERR!   dev cypress@"^7.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer cypress@"3 || 5 || 6" from cypress-select-tests@1.7.0
npm ERR! node_modules/cypress-select-tests
npm ERR!   dev cypress-select-tests@"1.7.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.

cypress select tests error

This is how my package.json looks like:

{
  "name": "cypress-automation",
  "version": "1.0.0",
  "description": "Cypress Automation by Testersdock",
  "main": "index.js",
  "scripts": {
    "test": "cypress open",
    "delete:reportFolder": "rm -rf mochawesome-report/",
    "test:cli": "npm run delete:reportFolder && cypress run",
    "merge:reports": "mochawesome-merge mochawesome-report/*.json > cypress-combined-report.json",
    "create:html:report": "npm run merge:reports && marge --reportDir TestReport cypress-combined-report.json"
  },
  "author": "Alapan",
  "license": "ISC",
  "devDependencies": {
    "cypress": "^7.0.1",
    "cypress-cucumber-preprocessor": "^4.0.3",
    "cypress-downloadfile": "^1.2.0",
    "cypress-file-upload": "^5.0.4",
    "mocha": "^8.3.2",
    "mochawesome": "^6.2.2",
    "mochawesome-merge": "^4.2.0",
    "mochawesome-report-generator": "^5.2.0"
  },
  "cypress-cucumber-preprocessor": {
    "nonGlobalStepDefinitions": true
  }
}
ljanatka commented 3 years ago

I ran into the same issue when upgrading cypress to version 7. Looks like the issue is already resolved here in this repo, but the new version of npm package has not been released. @bahmutov could you please bump the version of cypress-select-tests so we can use this great feature with cypress 7? Or am I missing something and there is some other easy way to use cypress-select-tests with cypress 7? Thanks!

bahmutov commented 3 years ago

:tada: This issue has been resolved in version 1.7.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: