Skip to main content
Glama

AutoDev Codebase MCP Server

by anrgct
inspectCSS.test.ts933 B
import { describe, it } from "@jest/globals" import { inspectTreeStructure, testParseSourceCodeDefinitions } from "./helpers" import { cssQuery } from "../queries" import sampleCSSContent from "./fixtures/sample-css" describe("CSS Tree-sitter Parser", () => { const testOptions = { language: "css", wasmFile: "tree-sitter-css.wasm", queryString: cssQuery, extKey: "css", } it("should properly parse CSS structures", async () => { // First run inspectTreeStructure to get query structure output await inspectTreeStructure(sampleCSSContent, "css") // Then run testParseSourceCodeDefinitions to get line numbers const result = await testParseSourceCodeDefinitions("test.css", sampleCSSContent, testOptions) expect(result).toBeDefined() if (!result) { throw new Error("No result returned from parser") } expect(result).toMatch(/\d+--\d+ \|/) expect(result.split("\n").length).toBeGreaterThan(1) }) })

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