@bemedev/cli-test
Version:
A library for testing CLI libraries (INCEPTION !!)
18 lines • 1.4 kB
TypeScript
import type { Defs, MockFn } from './types';
export declare const envFn: <K extends "cleanup" | "writeFile" | "readFile" | "removeFile" | "removeDir" | "ls" | "exists" | "makeDir" | "execute" | "spawn">() => import("vitest").Mock<Defs[K][0], Defs[K][1]>;
export declare const useBefore: () => {
readFile: import("vitest").Mock<[path: string], Promise<string>>;
ls: import("vitest").Mock<[path?: string | undefined], Promise<string[]>>;
removeDir: import("vitest").Mock<[path: string], Promise<void>>;
execute: import("vitest").Mock<[runner: string, command: string, runFrom?: string | undefined], Promise<import("@gmrchk/cli-testing-library/lib/createExecute").ExecResult>>;
writeFile: import("vitest").Mock<[path: string, content: string], Promise<void>>;
spawn: import("vitest").Mock<[runner: string, command: string, runFrom?: string | undefined], Promise<import("@gmrchk/cli-testing-library/lib/types").SpawnResult>>;
cleanup: import("vitest").Mock<[], Promise<void>>;
makeDir: import("vitest").Mock<[path: string], Promise<void>>;
path: import("vitest").Mock<any, any>;
removeFile: import("vitest").Mock<[path: string], Promise<void>>;
exists: import("vitest").Mock<[path: string], Promise<boolean>>;
read: string | undefined;
};
export declare const buildFn: (_fn?: MockFn) => () => void | undefined;
//# sourceMappingURL=describe.utils.d.ts.map