fancy-test
Version:
extendable utilities for testing
23 lines (22 loc) • 470 B
TypeScript
export declare const stdout: (opts?: {
print?: boolean;
stripColor?: boolean;
}) => {
run(ctx: {
readonly stdout: string;
}): void;
finally(): void;
};
export declare const stderr: (opts?: {
print?: boolean;
stripColor?: boolean;
}) => {
run(ctx: {
readonly stderr: string;
}): void;
finally(): void;
};
export declare const stdin: (input: string, delay?: number) => {
run: () => void;
finally(): void;
};