/**
* Mock implementation for the fs module
* Written in JavaScript to avoid TypeScript typing issues with complex mocking
*/
import { jest } from '@jest/globals';
// Create mock functions
export const mockReadFile = jest.fn();
export const mockWriteFile = jest.fn();
// Export the fs object to match the structure of the original module
// The original module imports { promises as fs } from 'fs' and exports { fs }
export const fs = {
readFile: mockReadFile,
writeFile: mockWriteFile,
};
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/gannonh/memento-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server