Skip to main content
Glama
jest.teardown.js891 B
// Jest global teardown for test database const fs = require('fs'); const path = require('path'); const testCollections = '/tmp/churn-test/Collections'; const testTracking = '/tmp/churn-test/Tracking'; const testDbFile = path.resolve(__dirname, '../../test-churnflow.db'); function deleteFolderRecursive(folderPath) { if (fs.existsSync(folderPath)) { fs.readdirSync(folderPath).forEach((file) => { const curPath = path.join(folderPath, file); if (fs.lstatSync(curPath).isDirectory()) { deleteFolderRecursive(curPath); } else { fs.unlinkSync(curPath); } }); fs.rmdirSync(folderPath); } } module.exports = async () => { // Remove test database file if (fs.existsSync(testDbFile)) { fs.unlinkSync(testDbFile); } // Remove test directories deleteFolderRecursive(testCollections); deleteFolderRecursive(testTracking); };

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/jgsteeler/churnflow-mcp'

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