# FakeCliFs Class

Module
import { FakeCliFs } from "@tsed/cli-testing"
Source/packages/cli-testing/src/FakeCliFs.ts

# Overview

class FakeCliFs {
    static entries: Map<any, string>;
    static getKeys(): any[];
    exists(path: string): boolean;
    readFile(file: string | Buffer | number, encoding?: any): Promise<string>;
    writeFileSync(path: PathLike | number, data: any, options?: WriteFileOptions): void;
    writeFile(file: string | Buffer | number, data: any, options?: WriteFileOptions | string): void;
    ensureDir(path: string, options?: EnsureOptions | number): Promise<void>;
    ensureDirSync(path: string, options?: EnsureOptions | number): void;
    $onDestroy(): void;
}

# Members

static entries: Map<any, string>

static getKeys(): any[]

exists(path: string): boolean

readFile(file: string | Buffer | number, encoding?: any): Promise<string>

writeFileSync(path: PathLike | number, data: any, options?: WriteFileOptions): void

writeFile(file: string | Buffer | number, data: any, options?: WriteFileOptions | string): void

ensureDir(path: string, options?: EnsureOptions | number): Promise<void>

ensureDirSync(path: string, options?: EnsureOptions | number): void

$onDestroy(): void