Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/crutchcorn/cli-testing-library. 🐨 Simple and complete CLI testing utilities that encourage good tes cli-testing.com
Something went wrong. Try again.
12345678910111213141516import { killProc } from "./process-helpers";import type { TestInstance } from "./types";
const isWin = process.platform === "win32";
const eventMap = { sigterm: (instance: TestInstance): Promise<void> => killProc(instance, isWin ? undefined : "SIGTERM"), sigkill: (instance: TestInstance): Promise<void> => killProc(instance, isWin ? undefined : "SIGKILL"), write: (instance: TestInstance, props: { value: string }): boolean => instance.process.stdin.write(props.value),};
export { eventMap };