UNPKG

cli-testing-library

Version:

Simple and complete CLI testing utilities that encourage good testing practices.

12 lines (11 loc) 394 B
import { killProc } from "./process-helpers.js"; const isWin = process.platform === "win32"; const eventMap = { sigterm: (instance) => killProc(instance, isWin ? void 0 : "SIGTERM"), sigkill: (instance) => killProc(instance, isWin ? void 0 : "SIGKILL"), write: (instance, props) => instance.process.stdin.write(props.value) }; export { eventMap }; //# sourceMappingURL=event-map.js.map