UNPKG

@n1k1t/unit-generator

Version:

Coverage based unit tests AI generator

27 lines 821 B
export type TBashExecuted = { status: 'OK'; stdout: string; } | { status: 'ERROR'; error: BashExecError; }; export declare class BashExecError extends Error { cmd: string; code: number; stderr: string; source?: Error | undefined; constructor(cmd: string, code: number, stderr: string, source?: Error | undefined); } export declare class Bash { private provided?; constructor(provided?: { /** Command prefix like `npm` */ argv0?: string; env?: Record<string, string>; cwd?: string; } | undefined); /** Executes bash commands (resolves `stderr` into `{ status: 'ERROR', error: BashExecError(...) }`) */ exec(cmd: string): Promise<TBashExecuted>; static build(provided?: Bash['provided']): Bash; } //# sourceMappingURL=bash.d.ts.map