{
  "doc": {
    "id": "api/cypress-api/testing-type",
    "title": "Cypress.testingType",
    "description": "Get the current testing type in Cypress.",
    "section": "api",
    "source_path": "/llm/markdown/api/cypress-api/testing-type.md",
    "version": "29f95bf8bb06f320986f3749f5bf09a35a409eab",
    "updated_at": "2026-09-04T10:49:54.630Z",
    "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', () => {\n  expect(Cypress.testingType).to.equal('component')\n})\n```\n\n### Conditionals\n\n```\nit('does something differently', () => {\n  if (Cypress.testingType === 'e2e') {\n    cy.task('something')\n  } else {\n    cy.task('something else')\n  }\n})\n```\n",
      "section": "api",
      "anchors": [
        "examples"
      ],
      "path": "/llm/json/chunked/api/cypress-api/testing-type.json",
      "token_estimate": 53
    }
  ]
}