Skip to main content
Glama
setup.cjs612 B
// Jest test setup // Global test timeout jest.setTimeout(10000); // Global cleanup tracking global.testCleanupTasks = []; // Add global cleanup task global.addCleanupTask = (task) => { global.testCleanupTasks.push(task); }; // Run cleanup after each test afterEach(async () => { // Execute all cleanup tasks for (const task of global.testCleanupTasks) { try { await task(); } catch (error) { console.warn('Cleanup task failed:', error.message); } } // Clear cleanup tasks global.testCleanupTasks = []; }); console.log('Test setup initialized - cleanup system ready');

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/witqq/clipboard-mcp'

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