UNPKG

@debugmcp/mcp-debugger

Version:

Run-time step-through debugging for LLM agents.

15 lines (10 loc) 522 B
import { vi } from 'vitest'; const fsExtraMock = { ensureDir: vi.fn(async () => {}), // Mock implementation that returns a resolved promise of void pathExists: vi.fn(async () => true), // Mock implementation that returns a resolved promise of true // Add other fs-extra functions if they are used and need mocking }; // To ensure the mock implementations are set correctly for vi.fn: fsExtraMock.ensureDir.mockResolvedValue(undefined); fsExtraMock.pathExists.mockResolvedValue(true); export default fsExtraMock;