{
  "doc": {
    "id": "api/cypress-api/spec",
    "title": "Cypress.spec | Cypress Documentation",
    "description": "Get the properties of the spec under test in Cypress",
    "section": "api",
    "source_path": "/llm/markdown/api/cypress-api/spec.md",
    "version": "a8fd16711bdda4c7b5645b9717e588ae99ec2470",
    "updated_at": "2026-05-18T17:21:32.047Z",
    "headings": [
      {
        "id": "api/cypress-api/spec#cypress-spec",
        "text": "Cypress.spec",
        "level": 1
      },
      {
        "id": "api/cypress-api/spec#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/cypress-api/spec#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/cypress-api/spec#log-spec-information",
        "text": "Log spec information",
        "level": 3
      },
      {
        "id": "api/cypress-api/spec#cypress-spec-returns-an-object",
        "text": "Cypress.spec returns an object",
        "level": 4
      }
    ]
  },
  "chunks": [
    {
      "id": "api/cypress-api/spec#examples",
      "doc_id": "api/cypress-api/spec",
      "heading": "Examples",
      "heading_level": 2,
      "content_markdown": "## Examples\n\n### Log spec information\n\n#### `Cypress.spec` returns an object\n\n```\nit('log spec info', () => {  console.log(Cypress.spec)  // {  //   name: 'filter.cy.js',  //   relative: 'cypress/e2e/filter.cy.js',  //   absolute: '/Users/janelane/Dev/web-app/cypress/e2e/filter.cy.js',  // }})\n```\n",
      "section": "api",
      "anchors": [
        "examples"
      ],
      "path": "/llm/json/chunked/api/cypress-api/spec.json",
      "token_estimate": 44
    },
    {
      "id": "api/cypress-api/spec#log-spec-information",
      "doc_id": "api/cypress-api/spec",
      "heading": "Log spec information",
      "heading_level": 3,
      "content_markdown": "### Log spec information\n\n#### `Cypress.spec` returns an object\n\n```\nit('log spec info', () => {  console.log(Cypress.spec)  // {  //   name: 'filter.cy.js',  //   relative: 'cypress/e2e/filter.cy.js',  //   absolute: '/Users/janelane/Dev/web-app/cypress/e2e/filter.cy.js',  // }})\n```\n",
      "section": "api",
      "anchors": [
        "log-spec-information"
      ],
      "path": "/llm/json/chunked/api/cypress-api/spec.json",
      "token_estimate": 41
    }
  ]
}