/**
 * Mock for node:fs
 *
 * Provides mock file system functions for testing
 */

import { vi } from "vitest";

export const existsSync = vi.fn().mockReturnValue(true);
export const readFileSync = vi.fn().mockReturnValue("12345");
export const unlinkSync = vi.fn();
export const writeFileSync = vi.fn();
export const mkdirSync = vi.fn();
export const readdirSync = vi.fn().mockReturnValue([]);
export const statSync = vi.fn().mockReturnValue({
	isFile: () => true,
	isDirectory: () => false,
});
