{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "test.deploy/core/reporters/webhook.fixture.ts",
          "name": "titleIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/testing#file-testing-test-deploy-core-reporters-webhook-fixture-ts",
            "json": "https://banes-lab.com/json/source/testing/test.deploy/core/reporters/webhook.fixture.ts",
            "label": "test.deploy/core/reporters/webhook.fixture.ts",
            "markdown": "https://banes-lab.com/source/testing/test.deploy/core/reporters/webhook.fixture.ts.md",
            "ref": "anatomy:file-testing-test-deploy-core-reporters-webhook-fixture-ts"
          }
        },
        {
          "file": "test.deploy/core/reporters/webhook.fixture.ts",
          "name": "titleIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/testing#file-testing-test-deploy-core-reporters-webhook-fixture-ts",
            "json": "https://banes-lab.com/json/source/testing/test.deploy/core/reporters/webhook.fixture.ts",
            "label": "test.deploy/core/reporters/webhook.fixture.ts",
            "markdown": "https://banes-lab.com/source/testing/test.deploy/core/reporters/webhook.fixture.ts.md",
            "ref": "anatomy:file-testing-test-deploy-core-reporters-webhook-fixture-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "isRecord",
      "signature": "const isRecord = function isRecord(value: unknown): value is Record<string, unknown> {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "test.deploy/core/reporters/webhook.fixture.ts",
          "name": "isRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/testing#file-testing-test-deploy-core-reporters-webhook-fixture-ts",
            "json": "https://banes-lab.com/json/source/testing/test.deploy/core/reporters/webhook.fixture.ts",
            "label": "test.deploy/core/reporters/webhook.fixture.ts",
            "markdown": "https://banes-lab.com/source/testing/test.deploy/core/reporters/webhook.fixture.ts.md",
            "ref": "anatomy:file-testing-test-deploy-core-reporters-webhook-fixture-ts"
          }
        },
        {
          "file": "test.deploy/core/reporters/webhook.fixture.ts",
          "name": "isRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/testing#file-testing-test-deploy-core-reporters-webhook-fixture-ts",
            "json": "https://banes-lab.com/json/source/testing/test.deploy/core/reporters/webhook.fixture.ts",
            "label": "test.deploy/core/reporters/webhook.fixture.ts",
            "markdown": "https://banes-lab.com/source/testing/test.deploy/core/reporters/webhook.fixture.ts.md",
            "ref": "anatomy:file-testing-test-deploy-core-reporters-webhook-fixture-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "test.deploy/core/reporters/webhook.fixture.ts",
          "name": "titleOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/testing#file-testing-test-deploy-core-reporters-webhook-fixture-ts",
            "json": "https://banes-lab.com/json/source/testing/test.deploy/core/reporters/webhook.fixture.ts",
            "label": "test.deploy/core/reporters/webhook.fixture.ts",
            "markdown": "https://banes-lab.com/source/testing/test.deploy/core/reporters/webhook.fixture.ts.md",
            "ref": "anatomy:file-testing-test-deploy-core-reporters-webhook-fixture-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "titleIn",
      "signature": "const titleIn = function titleIn(payload: unknown): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "test.deploy/core/reporters/webhook.fixture.ts",
          "name": "titleIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/testing#file-testing-test-deploy-core-reporters-webhook-fixture-ts",
            "json": "https://banes-lab.com/json/source/testing/test.deploy/core/reporters/webhook.fixture.ts",
            "label": "test.deploy/core/reporters/webhook.fixture.ts",
            "markdown": "https://banes-lab.com/source/testing/test.deploy/core/reporters/webhook.fixture.ts.md",
            "ref": "anatomy:file-testing-test-deploy-core-reporters-webhook-fixture-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "titleOf",
      "signature": "export const titleOf = function titleOf(fetchMock: FetchMock): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "type_alias_declaration",
      "line": 5,
      "name": "FetchMock",
      "signature": "export type FetchMock = Mock<typeof fetch>;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "stubFetch",
      "signature": "export const stubFetch = function stubFetch(status = 204, statusText = \"\"): FetchMock {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "fetchMock",
      "signature": "const fetchMock = vi.fn<typeof fetch>().mockResolvedValue(new Response(null, { status, statusText }));"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "requestOf",
      "signature": "export const requestOf = function requestOf(fetchMock: FetchMock): WebhookRequest {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "[, request]",
      "signature": "const [, request] = fetchMock.mock.calls[0] ?? [];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "rawPayloadOf",
      "signature": "const rawPayloadOf = function rawPayloadOf(request: WebhookRequest): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "{ body }",
      "signature": "const { body } = request;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "entry",
      "signature": "const entry = body.get(PAYLOAD_FIELD);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "{ embeds }",
      "signature": "const { embeds } = payload;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "entries",
      "signature": "const entries: unknown[] = embeds;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "[first]",
      "signature": "const [first] = entries;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "parsed",
      "signature": "const parsed: unknown = JSON.parse(rawPayloadOf(requestOf(fetchMock)));"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/testing#file-testing-test-deploy-core-reporters-webhook-fixture-ts",
  "language": "typescript",
  "layer": null,
  "name": "webhook.fixture.ts",
  "path": "test.deploy/core/reporters/webhook.fixture.ts",
  "ref": "anatomy:file-testing-test-deploy-core-reporters-webhook-fixture-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/testing#folder-testing-test-deploy-core-reporters",
          "json": "https://banes-lab.com/json/anatomy/testing/folder-testing-test-deploy-core-reporters",
          "label": "test.deploy/core/reporters",
          "markdown": "https://banes-lab.com/anatomy/testing/folder-testing-test-deploy-core-reporters.md",
          "ref": "chapter:/anatomy/testing#folder-testing-test-deploy-core-reporters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/testing#folder-testing-test-deploy-core-reporters",
          "json": "https://banes-lab.com/json/anatomy/testing/folder-testing-test-deploy-core-reporters",
          "label": "test.deploy/core/reporters",
          "markdown": "https://banes-lab.com/anatomy/testing/folder-testing-test-deploy-core-reporters.md",
          "ref": "chapter:/anatomy/testing#folder-testing-test-deploy-core-reporters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": null,
  "stats": {
    "bytes": 1718,
    "callable": 6,
    "definitions": 15,
    "edges": 3,
    "exported": 7,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "relay": 1,
      "entry": 1,
      "isolated": 12
    },
    "lines": {
      "blank": 7,
      "code": 43,
      "total": 50
    }
  },
  "summary": "43 lines of code and 15 definitions.",
  "text": "https://banes-lab.com/source/testing/test.deploy/core/reporters/webhook.fixture.ts.txt",
  "tree": "testing",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/testing#file-testing-test-deploy-core-reporters-notification-reporter-test-ts",
      "json": "https://banes-lab.com/json/source/testing/test.deploy/core/reporters/notification.reporter.test.ts",
      "label": "test.deploy/core/reporters/notification.reporter.test.ts",
      "markdown": "https://banes-lab.com/source/testing/test.deploy/core/reporters/notification.reporter.test.ts.md",
      "ref": "anatomy:file-testing-test-deploy-core-reporters-notification-reporter-test-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/testing/test.deploy/core/reporters",
    "label": "test.deploy/core/reporters",
    "markdown": "https://banes-lab.com/api/source/testing/test.deploy/core/reporters.md",
    "ref": "api:source/testing/test.deploy/core/reporters"
  }
}
