import { setupGlobalFetchMock } from './__mocks__/fetch.js';
// Global test setup
setupGlobalFetchMock();
// Mock console methods in tests to reduce noise
global.console = {
...console,
log: jest.fn(),
warn: jest.fn(),
error: jest.fn(),
};
// Clean up after each test
afterEach(() => {
jest.clearAllMocks();
});
// Clean up after all tests
afterAll(() => {
// Ensure all timers are cleared
jest.clearAllTimers();
// Reset all mocks
jest.resetAllMocks();
});
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/ParthibanRajasekaran/mcp-weather'
If you have feedback or need assistance with the MCP directory API, please join our Discord server