{
  "doc": {
    "id": "api/cypress-api/version",
    "title": "Cypress.version",
    "description": "Get the current version of Cypress you are running.",
    "section": "api",
    "source_path": "/llm/markdown/api/cypress-api/version.md",
    "version": "29f95bf8bb06f320986f3749f5bf09a35a409eab",
    "updated_at": "2026-09-04T10:49:54.630Z",
    "headings": [
      {
        "id": "api/cypress-api/version#cypress-version",
        "text": "Cypress.version",
        "level": 1
      },
      {
        "id": "api/cypress-api/version#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/cypress-api/version#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/cypress-api/version#conditionals",
        "text": "Conditionals",
        "level": 3
      },
      {
        "id": "api/cypress-api/version#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/cypress-api/version#examples",
      "doc_id": "api/cypress-api/version",
      "heading": "Examples",
      "heading_level": 2,
      "content_markdown": "## Examples\n\n### Conditionals\n\n```\nconst semver = require('semver')\n\nif (semver.gte(Cypress.version, '1.1.3')) {\n  it('has Cypress.platform', () => {\n    expect(Cypress.platform).to.be.a('string')\n  })\n}\n```\n\n**Hint:** you can use [semver](https://github.com/npm/node-semver#readme) library to work with semantic versions.\n",
      "section": "api",
      "anchors": [
        "examples"
      ],
      "path": "/llm/json/chunked/api/cypress-api/version.json",
      "token_estimate": 44
    },
    {
      "id": "api/cypress-api/version#conditionals",
      "doc_id": "api/cypress-api/version",
      "heading": "Conditionals",
      "heading_level": 3,
      "content_markdown": "### Conditionals\n\n```\nconst semver = require('semver')\n\nif (semver.gte(Cypress.version, '1.1.3')) {\n  it('has Cypress.platform', () => {\n    expect(Cypress.platform).to.be.a('string')\n  })\n}\n```\n\n**Hint:** you can use [semver](https://github.com/npm/node-semver#readme) library to work with semantic versions.\n",
      "section": "api",
      "anchors": [
        "conditionals"
      ],
      "path": "/llm/json/chunked/api/cypress-api/version.json",
      "token_estimate": 41
    }
  ]
}