{
  "doc": {
    "id": "api/cypress-api/testing-type",
    "title": "Cypress.testingType | Cypress Documentation",
    "description": "Get the current testing type in Cypress.",
    "section": "api",
    "source_path": "/llm/markdown/api/cypress-api/testing-type.md",
    "version": "3cf5b86b3403f604bdf7f3e35025c3bc3865e02c",
    "updated_at": "2026-05-07T17:44:31.931Z",
    "headings": [
      {
        "id": "api/cypress-api/testing-type#cypress-testingtype",
        "text": "Cypress.testingType",
        "level": 1
      },
      {
        "id": "api/cypress-api/testing-type#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/cypress-api/testing-type#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/cypress-api/testing-type#testing-type",
        "text": "Testing Type",
        "level": 3
      },
      {
        "id": "api/cypress-api/testing-type#conditionals",
        "text": "Conditionals",
        "level": 3
      },
      {
        "id": "api/cypress-api/testing-type#history",
        "text": "History",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/cypress-api/testing-type#examples",
      "doc_id": "api/cypress-api/testing-type",
      "heading": "Examples",
      "heading_level": 2,
      "content_markdown": "## Examples\n\n### Testing Type\n\n```\nit('is running component testing mode', () => {  expect(Cypress.testingType).to.equal('component')})\n```\n\n### Conditionals\n\n```\nit('does something differently', () => {  if (Cypress.testingType === 'e2e') {    cy.exec('something')  } else {    cy.exec('something else')  }})\n```\n",
      "section": "api",
      "anchors": [
        "examples"
      ],
      "path": "/llm/json/chunked/api/cypress-api/testing-type.json",
      "token_estimate": 51
    }
  ]
}