Skip to main content

Cypress.version

Cypress.version returns you the current version of Cypress you are running.

Syntax​

Cypress.version // '1.1.0'

Examples​

Conditionals​

const semver = require('semver')

if (semver.gte(Cypress.version, '1.1.3')) {
it('has Cypress.platform', () => {
expect(Cypress.platform).to.be.a('string')
})
}
note

Hint: you can use semver library to work with semantic versions.

See also​

To find the version of the Electron component, or the bundled Node version, use the Cypress CLI command cypress version.