Skip to main content
Glama
index.test.ts470 B
import { GitError } from "./index"; describe("Error classes", () => { describe("GitError class", () => { let error: GitError; beforeEach(() => { error = new GitError(1, "Operation failed"); }); it("should be an instance of error", () => { expect(error).toBeInstanceOf(Error); }); it("should include error message and exit code in error", () => { expect(error.toString()).toMatch(/(Operation failed).*(1)/); }); }); });

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/ajaystream/hubspot-mcp-custom'

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