@push-based/node-cli-testing
Version:
### A e2e-testing library for node CLI and processes including sandbox generation on the fly
16 lines (15 loc) • 590 B
TypeScript
import { PromptTestOptions, TestResult, ProcessOptions } from './types';
/**
* A function to control a process and its in and outputs.
* Starts a node process with a given configuration Takes parameters
*
* @param args
* parameters passed to the process
* @param answers
* values to be passed to process
* @param options
* specify the process configuration
* @param promptOptions
* specify the process configuration
*/
export declare function testProcessE2e(args?: string[], answers?: string[], options?: ProcessOptions, promptOptions?: PromptTestOptions): Promise<TestResult>;