Skip to main content
Glama
jest.integration.config.cjs1.4 kB
/** @type {import('jest').Config} */ module.exports = { // Extend the base Jest config preset: 'ts-jest/presets/default-esm', testEnvironment: 'node', extensionsToTreatAsEsm: ['.ts'], moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' }, transform: { '^.+\\.tsx?$': ['ts-jest', { useESM: true, tsconfig: { allowJs: true, rootDir: '.', isolatedModules: true } }] }, transformIgnorePatterns: [ 'node_modules/(?!(@modelcontextprotocol|zod)/)' ], resolver: 'ts-jest-resolver', // Integration test specific settings testMatch: ['<rootDir>/test/__tests__/integration/**/*.test.ts'], // Longer timeout for integration tests testTimeout: 30000, // Run tests sequentially to avoid conflicts maxWorkers: 1, // Clear mocks between tests clearMocks: true, restoreMocks: true, // Coverage settings for integration tests collectCoverageFrom: [ 'src/**/*.ts', '!src/**/*.d.ts', '!src/types/**' ], // Different coverage directory coverageDirectory: 'test/coverage-integration', // Display name in test output displayName: 'Integration Tests', // Setup and teardown globalSetup: '<rootDir>/test/__tests__/integration/setup.ts', globalTeardown: '<rootDir>/test/__tests__/integration/teardown.ts', // Root directory for test/package resolution rootDir: '..' };

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/DollhouseMCP/DollhouseMCP'

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