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.
- Cypress v10
- Cypress v9
// 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"
}
},
// lambdatest-config.json
"run_settings":{
"cypress_config_file": "cypress.json",
"reporter_config_file": "base_reporter_config.json",
"build_name": "build-name",
"parallels": 1,
"specs": "./*.spec.js",
"ignore_files": "",
"network": false,
"headless": false,
"npm_dependencies": {
"cypress": "9.0.0"
}
Setting Cypress Version
Following are the different ways to set the Cypress version.
- Using
package.json
: LambdaTest will pick the Cypress version frompackage.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",
- Using
npm_dependencies
: If you are passingnpm_dependencies
, LambdaTest will pick the Cypress version fromnpm_dependencies
inlambdatest-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"
},
},
- Using
cypress_version
: You can passcypress_version
inlambdatest-config.json
and it will override thecypress_version
present innpm_dependencies
orpackage.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"
},