Skip to main content
Glama
test-mocks.ts629 B
/** * @fileoverview General-purpose mock implementations for tests * * These mocks provide consistent test doubles for common dependencies * across unit and integration tests. */ /** * Mock logger factory for suppressing log output in tests. * * Returns a logger with all methods stubbed as no-ops. * * USAGE: * ```ts * vi.mock('../path/to/logger/index.js', () => ({ * getLogger: createMockLogger * })); * ``` */ export const createMockLogger = (): { warn: () => void; info: () => void; debug: () => void; error: () => void; } => ({ warn: () => {}, info: () => {}, debug: () => {}, error: () => {} });

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/eyaltoledano/claude-task-master'

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