Skip to content

FakeCliExeca

@tsed/cli-testing

Usage ​

typescript
import { FakeCliExeca } from "@tsed/cli-testing";

See /packages/cli-testing/src/FakeCliExeca.ts.

Overview ​

ts
class FakeCliExeca extends CliExeca {
    static entries: Map<string, string>;
    run(cmd: string, args: string[], _?: any): any;
    getAsync(cmd: string, args: string[], _?: any): Promise<any>;
    runSync(cmd: string, args: string[], _?: any): any;
}

static entries ​

ts
static entries: Map<string, string>;

run ​

ts
run(cmd: string, args: string[], _?: any): any;

getAsync ​

ts
getAsync(cmd: string, args: string[], _?: any): Promise<any>;

runSync ​

ts
runSync(cmd: string, args: string[], _?: any): any;

Released under the MIT License.