Skip to main content

Supported Cypress Versions

With the newer versions of Cypress releasing, to gain the most from recent improvements and bug fixes, it is recommended that your test scripts use the latest version.

LambdaTest supports every major, minor and patch versions for:

  • Cypress 10 & above
  • Cypress 9 & below

Cypress Versions Supported By LambdaTest


In lambdatest-config.json file, you can set the Cypress version as shown in the below code snippet.

// lambdatest-config.json

"run_settings":{
"cypress_config_file":"cypress.config.js",
"reporter_config_file":"base_reporter_config.json",
"build_name":"build-name",
"parallels":1,
"specs":"./*.cy.js",
"ignore_files":"",
"network":false,
"headless":false,
"npm_dependencies":{
"cypress":"10.0.0"
}
},

Setting Cypress Version


Following are the different ways to set the Cypress version.

  1. Using package.json: LambdaTest will pick the Cypress version from package.json.

Example:

"devDependencies": {
"@bahmutov/print-env": "1.2.0",
"@cypress/eslint-plugin-dev": "5.0.0",
"colon-names": "1.0.0",
"cypress": "9.2.1",
"eslint": "7.0.0",
  1. Using npm_dependencies: If you are passing npm_dependencies, LambdaTest will pick the Cypress version from npm_dependencies in lambdatest-config.json.

Example:

"run_settings": {
"cypress_config_file": "cypress.json",
"build_name": "Cypress v9 Demo",
"parallels": 2,
"specs": "./cypress/integration/examples/actions.spec.js",
"downloads": "./cypress/results/",
"ignore_files": "",
"network": false,
"headless": false,
"reporter_config_file": "",
"npm_dependencies": {
"cypress": "10.0.0"
},
},
  1. Using cypress_version: You can pass cypress_version in lambdatest-config.json and it will override the cypress_version present in npm_dependencies or package.json.

Example:

"run_settings": {
"cypress_config_file": "cypress.json",
"build_name": "Cypress v9 Demo",
"parallels": 2,
"specs": "./cypress/integration/examples/actions.spec.js",
"downloads": "./cypress/results/",
"ignore_files": "",
"network": false,
"headless": false,
"reporter_config_file": "",
"npm_dependencies": {
"typescript": "3.7.4"
},
"cypress_version": "10.0.0"
},