We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bgauryy/octocode-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
setup.ts•304 B
/**
* Vitest Test Setup
*/
import { vi, beforeEach } from 'vitest';
// Mock process.exit to prevent tests from exiting
vi.spyOn(process, 'exit').mockImplementation(code => {
throw new Error(`process.exit(${code})`);
});
// Reset mocks before each test
beforeEach(() => {
vi.clearAllMocks();
});