Skip to main content
Glama

AutoDev Codebase MCP Server

by anrgct
inspectSwift.test.ts1.05 kB
import { describe, it, expect } from "@jest/globals" import { inspectTreeStructure, testParseSourceCodeDefinitions, debugLog } from "./helpers" import { swiftQuery } from "../queries" import sampleSwiftContent from "./fixtures/sample-swift" describe("inspectSwift", () => { const testOptions = { language: "swift", wasmFile: "tree-sitter-swift.wasm", queryString: swiftQuery, extKey: "swift", } it("should inspect Swift tree structure", async () => { // Should execute without throwing await expect(inspectTreeStructure(sampleSwiftContent, "swift")).resolves.not.toThrow() }) it("should parse Swift definitions", async () => { // This test validates that testParseSourceCodeDefinitions produces output const result = await testParseSourceCodeDefinitions("test.swift", sampleSwiftContent, testOptions) expect(result).toBeDefined() // Check that the output format includes line numbers and content if (result) { expect(result).toMatch(/\d+--\d+ \| .+/) debugLog("Swift parsing test completed successfully") } }) })

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anrgct/autodev-codebase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server