@gala-chain/launchpad-mcp-server
Version:
MCP server for Gala Launchpad - 102 tools (pool management, event watchers, GSwap DEX trading, price history, token creation, wallet management, DEX pool discovery, liquidity positions, token locks, locked token queries, composite pool data, cross-chain b
71 lines (56 loc) • 1.67 kB
JavaScript
/**
* Jest Configuration for Integration Tests
*
* Integration tests use real SDK instances and make actual API calls.
* Requires valid PRIVATE_KEY environment variable.
*/
module.exports = {
// Use ts-jest for TypeScript support
preset: 'ts-jest',
// Node.js environment (MCP server is server-side)
testEnvironment: 'node',
// Integration test file location patterns
roots: ['<rootDir>/src'],
testMatch: ['**/__tests__/integration/**/*.integration.test.ts'],
// Coverage collection
collectCoverageFrom: [
'src/tools/**/*.ts',
'!src/tools/**/__tests__/**',
'!src/**/*.d.ts',
],
// Coverage reporters
coverageReporters: ['text', 'text-summary', 'html', 'lcov'],
// Module path aliases
moduleNameMapper: {
'^@/(.*}$': '<rootDir>/src/$1',
'^(\\.{1,2}/.*)\\.js$': '$1', // Map .js imports to .ts files
},
// Transform files with ts-jest
transform: {
'^.+\\.ts$': [
'ts-jest',
{
tsconfig: {
module: 'commonjs',
strict: true,
esModuleInterop: true,
skipLibCheck: true,
},
},
],
},
// File extensions to consider
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
// Ignore patterns
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/.history/'],
// Setup files (if needed for global test setup)
// setupFilesAfterEnv: ['<rootDir>/src/__tests__/setup.ts'],
// Clear mocks between tests
clearMocks: true,
// Verbose output
verbose: true,
// Integration tests may take longer
testTimeout: 60000, // 60 seconds
// Maximum worker threads (optimize for CI/CD)
maxWorkers: '50%',
};