Skip to main content
Glama
setup.ts1.05 kB
// Jest setup file for Universal Blockchain MCP // This file runs before all tests // Mock console methods to avoid noise in tests const originalConsole = { ...console }; beforeAll(() => { // Suppress console output during tests unless explicitly needed console.log = jest.fn(); console.error = jest.fn(); console.warn = jest.fn(); }); afterAll(() => { // Restore original console methods Object.assign(console, originalConsole); }); // Global test utilities (global as any).testUtils = { // Add any global test utilities here mockZetaCommand: jest.fn(), createMockServer: () => { // Mock server creation for tests return { server: { setRequestHandler: jest.fn(), connect: jest.fn(), close: jest.fn(), }, testMode: true, }; }, }; // Extend Jest matchers if needed expect.extend({ // Add custom matchers here }); // Add a dummy test to prevent "no tests" error describe('Setup', () => { test('should load setup file', () => { expect(true).toBe(true); }); });

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/ExpertVagabond/zetachain-mcp-server'

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