UNPKG

@jakechampion/cli-testing-library

Version:

Small but powerful library for testing CLI the way it is used by people.

20 lines (19 loc) 1.05 kB
/** @license CLI testing library * Copyright (c) Georgy Marchuk. * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /// <reference types="node" /> import { copyFile, readFile, unlink, rmdir, writeFile, mkdtemp, access, readdir, mkdir } from 'fs'; import { CLITestEnvironment } from './types'; export declare const copy: typeof copyFile.__promisify__; export declare const fsRead: typeof readFile.__promisify__; export declare const fsWrite: typeof writeFile.__promisify__; export declare const fsRemove: typeof unlink.__promisify__; export declare const fsRemoveDir: typeof rmdir.__promisify__; export declare const fsMakeDir: typeof mkdir.__promisify__; export declare const fsMakeTempDir: typeof mkdtemp.__promisify__; export declare const fsReadDir: typeof readdir.__promisify__; export declare const fsAccess: typeof access.__promisify__; export declare const relative: (p: string) => string; export declare const prepareEnvironment: () => Promise<CLITestEnvironment>;