We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ProfSynapse/nexus'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
setup.ts•657 B
/**
* Jest Setup File
*
* Runs before each test file to configure the testing environment.
*/
// Extend Jest timeout for async operations
jest.setTimeout(10000);
// Mock console.error to reduce noise in tests (but still capture for assertions)
const originalConsoleError = console.error;
beforeAll(() => {
console.error = jest.fn((...args) => {
// Still log to help debug failing tests
if (process.env.DEBUG_TESTS) {
originalConsoleError(...args);
}
});
});
afterAll(() => {
console.error = originalConsoleError;
});
// Clear all mocks between tests
beforeEach(() => {
jest.clearAllMocks();
});