Skip to main content
Glama
repo.test.ts554 B
import path from "node:path"; import { fileURLToPath } from "node:url"; import { describe, expect, it } from "vitest"; import { ensureRepoReady, getRepoPath } from "../src/repo.js"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const fixtureRepo = path.resolve(__dirname, "fixtures", "repo"); describe("repo", () => { it("resolves to the fixture repository path", async () => { const repoPath = await ensureRepoReady(); expect(path.resolve(repoPath)).toBe(fixtureRepo); expect(getRepoPath()).toBe(repoPath); }); });

Latest Blog Posts

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/ethanolivertroy/fedramp-docs-mcp'

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