Skip to main content
Glama

AutoDev Codebase MCP Server

by anrgct
inspectJavaScript.test.ts908 B
import { describe, it } from "@jest/globals" import { inspectTreeStructure, testParseSourceCodeDefinitions } from "./helpers" import { javascriptQuery } from "../queries" import sampleJavaScriptContent from "./fixtures/sample-javascript" describe("inspectJavaScript", () => { const testOptions = { language: "javascript", wasmFile: "tree-sitter-javascript.wasm", queryString: javascriptQuery, extKey: "js", } it("should inspect JavaScript tree structure", async () => { // Should not throw await expect(inspectTreeStructure(sampleJavaScriptContent, "javascript")).resolves.not.toThrow() }) it("should parse JavaScript definitions", async () => { const result = await testParseSourceCodeDefinitions("test.js", sampleJavaScriptContent, testOptions) expect(result).toBeDefined() expect(result).toMatch(/\d+--\d+ \| /) expect(result).toMatch(/function testFunctionDefinition/) }) })

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