Skip to main content
Glama
setup.ts920 B
import { jest } from '@jest/globals'; import dotenv from 'dotenv'; // Load test environment variables dotenv.config({ path: '.env.test' }); // Set up test environment variables if not provided process.env.CONFLUENCE_BASE_URL = process.env.CONFLUENCE_BASE_URL || 'https://test-org.atlassian.net'; process.env.CONFLUENCE_EMAIL = process.env.CONFLUENCE_EMAIL || 'test@example.com'; process.env.CONFLUENCE_API_TOKEN = process.env.CONFLUENCE_API_TOKEN || 'test-token'; process.env.CONFLUENCE_SPACE_KEY = process.env.CONFLUENCE_SPACE_KEY || 'TEST'; process.env.LOG_LEVEL = 'error'; // Suppress logs during testing // Mock console methods to reduce noise during testing global.console = { ...console, log: jest.fn(), debug: jest.fn(), info: jest.fn(), warn: jest.fn(), error: jest.fn(), }; // Global test timeout jest.setTimeout(10000); // Clean up after each test afterEach(() => { jest.clearAllMocks(); });

Latest Blog Posts

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/alirezarezvani/confluence-mcp-server'

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