UNPKG

vibe-janitor

Version:

A CLI tool that cleans AI-generated JavaScript/TypeScript projects efficiently and intelligently

34 lines (33 loc) 828 B
/** * Mock implementation for file system operations * This allows tests to run without touching the actual file system */ export declare class FsMock { private mockFiles; private originalFsMethods; constructor(); /** * Set up mock file system with initial file structure */ setup(fileStructure: Record<string, string>): void; /** * Normalize path for consistent handling */ private normalizePath; /** * Restore original fs methods */ restore(): void; /** * Get content of a mock file */ getMockFileContent(path: string): string | undefined; /** * Set content of a mock file */ setMockFileContent(path: string, content: string): void; /** * Get all mock files */ getAllMockFiles(): Map<string, string>; }