Skip to main content
Glama
jest.config.js1.03 kB
/** @type {import('ts-jest').JestConfigWithTsJest} */ export default { preset: 'ts-jest/presets/default-esm', testEnvironment: 'node', extensionsToTreatAsEsm: ['.ts'], moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1', }, transform: { '^.+\\.(ts|tsx)$': [ 'ts-jest', { useESM: true, }, ], '^.+\\.js$': [ 'ts-jest', { useESM: true, }, ], }, testMatch: ['**/tests/**/*.test.ts'], transformIgnorePatterns: [ 'node_modules/(?!(@modelcontextprotocol/sdk)/)', ], modulePathIgnorePatterns: [], collectCoverageFrom: [ 'src/**/*.ts', // Exclude bootstrap/entry point files '!src/index.ts', // Exclude MCP SDK wrapper (tested indirectly via tool-handlers) '!src/server/create-server.ts', // Exclude static tool definitions (no logic to test) '!src/server/tool-definitions.ts', ], coverageThreshold: { global: { branches: 65, functions: 80, lines: 80, statements: 80, }, }, };

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/cppmyjob/cpp-mcp-planner'

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