Skip to main content
Glama

News Aggregator API

setupTests.ts565 B
/** * Jest Setup file that runs before all tests */ import { beforeAll, beforeEach, afterAll, jest } from '@jest/globals'; import { cacheService } from '../utils/cache'; // Import database mock import './mocks/db.mock'; // Clear cache before each test beforeEach(() => { cacheService.clear(); }); // Set up global mocks for Jest jest.setTimeout(10000); // Mock axios jest.mock('axios'); // Silence console logs during tests global.console = { ...console, log: jest.fn(), info: jest.fn(), debug: jest.fn(), warn: jest.fn(), error: jest.fn(), };

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/Malachi-devel/the-news-api-mcp-server'

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