{
  "doc": {
    "id": "api/cypress-api/arch",
    "title": "Cypress.arch | Cypress Documentation",
    "description": "Cypress.arch returns you the CPU architecture name of the underlying OS.",
    "section": "api",
    "source_path": "/llm/markdown/api/cypress-api/arch.md",
    "version": "7ada28c0cd90e81cf56fd3fc73de6e6d45c16de6",
    "updated_at": "2026-05-13T21:55:41.935Z",
    "headings": [
      {
        "id": "api/cypress-api/arch#cypress-arch",
        "text": "Cypress.arch",
        "level": 1
      },
      {
        "id": "api/cypress-api/arch#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/cypress-api/arch#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/cypress-api/arch#cpu-architecture",
        "text": "CPU Architecture​",
        "level": 3
      },
      {
        "id": "api/cypress-api/arch#conditionals",
        "text": "Conditionals",
        "level": 3
      },
      {
        "id": "api/cypress-api/arch#history",
        "text": "History",
        "level": 2
      }
    ]
  },
  "content": {
    "type": "root",
    "children": [
      {
        "type": "heading",
        "depth": 1,
        "children": [
          {
            "type": "text",
            "value": "Cypress.arch"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "`Cypress.arch` returns you the CPU architecture name of the underlying OS, as returned from Node's "
          },
          {
            "type": "link",
            "title": null,
            "url": "https://nodejs.org/api/os.html#os_os_arch",
            "children": [
              {
                "type": "text",
                "value": "`os.arch()`"
              }
            ]
          },
          {
            "type": "text",
            "value": "."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Even though Cypress runs in the browser, it automatically makes this property available for use in your tests."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "Syntax"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "Cypress.arch // 'x64'"
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "Examples"
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "CPU Architecture"
          },
          {
            "type": "link",
            "title": null,
            "url": "#CPU-Architecture",
            "children": [
              {
                "type": "text",
                "value": "​"
              }
            ]
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "it('has expected CPU architecture', () => {  expect(Cypress.arch).to.be.oneOf(['x64', 'ia32'])})"
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Conditionals"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "it('does something differently', () => {  if (Cypress.arch === 'x64') {    cy.exec('something')  } else {    cy.exec('something else')  }})"
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "History"
          }
        ]
      },
      {
        "type": "table",
        "align": [
          null,
          null
        ],
        "children": [
          {
            "type": "tableRow",
            "children": [
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "Version"
                  }
                ]
              },
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "Changes"
                  }
                ]
              }
            ]
          },
          {
            "type": "tableRow",
            "children": [
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "link",
                    "title": null,
                    "url": "/llm/markdown/app/references/changelog.md#1-1-3",
                    "children": [
                      {
                        "type": "text",
                        "value": "1.1.3"
                      }
                    ]
                  }
                ]
              },
              {
                "type": "tableCell",
                "children": [
                  {
                    "type": "text",
                    "value": "`Cypress.arch` added"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  },
  "token_estimate": 132
}