UNPKG

@sunamo/sunodejs

Version:

Node.js utilities for file system operations, process management, and Electron apps. Includes TypeScript support with functions for file operations, directory management, and cross-platform compatibility.

20 lines (19 loc) 590 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ProcessUtils_1 = require("../ProcessUtils"); describe("executeCommandInCmd", () => { it("resolves with stdout on success", async () => { const log = { error: jest.fn(), info: jest.fn(), warn: jest.fn(), debug: jest.fn(), }; const result = await (0, ProcessUtils_1.executeCommandInCmd)({ command: "echo", args: ["hello"], log, }); expect(result.trim()).toBe("hello"); }); });