Skip to main content
Glama
index.test.ts1.06 kB
import { SSHConnectionManager, SSHConnection, SSHConnectionConfig, ConnectionStatus, } from "../src/index"; describe("Index Module", () => { it("should export SSHConnectionManager", () => { expect(SSHConnectionManager).toBeDefined(); expect(typeof SSHConnectionManager).toBe("function"); }); it("should export ConnectionStatus enum", () => { expect(ConnectionStatus).toBeDefined(); expect(ConnectionStatus.CONNECTED).toBe("connected"); }); it("should export interfaces as types", () => { // These are TypeScript interfaces, so we just verify they exist at compile time // by using them in variable declarations const mockConfig: SSHConnectionConfig = { name: "test", host: "localhost", username: "test", }; const mockConnection: SSHConnection = { name: "test", host: "localhost", username: "test", status: ConnectionStatus.CONNECTED, lastActivity: new Date(), }; expect(mockConfig).toBeDefined(); expect(mockConnection).toBeDefined(); }); });

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/LightspeedDMS/ssh-mcp'

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