Skip to main content
Glama

AutoDev Codebase MCP Server

by anrgct
inspectTsx.test.ts1.09 kB
import { describe, it, expect } from "@jest/globals" import { inspectTreeStructure, testParseSourceCodeDefinitions, debugLog } from "./helpers" import sampleTsxContent from "./fixtures/sample-tsx" describe("inspectTsx", () => { const testOptions = { language: "tsx", wasmFile: "tree-sitter-tsx.wasm", } it("should inspect TSX tree structure", async () => { // This test only validates that the function executes without error await inspectTreeStructure(sampleTsxContent, "tsx") // No expectations - just verifying it runs }) it("should parse TSX definitions and produce line number output", async () => { // Execute parsing and capture the result const result = await testParseSourceCodeDefinitions("test.tsx", sampleTsxContent, testOptions) // Validate that the result is defined expect(result).toBeDefined() // Validate that the result contains line number output format (N--M | content) expect(result).toMatch(/\d+--\d+ \|/) // Debug output the result for inspection debugLog("TSX Parse Result Sample:", result?.substring(0, 500) + "...") }) })

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