From 666674327f009e9b1013218fc384f193b64c6997 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 14 Dec 2025 22:39:18 -0800 Subject: Adds unit tests --- lib/process/exec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/process/exec.ts') diff --git a/lib/process/exec.ts b/lib/process/exec.ts index f8d572c..3a934b3 100644 --- a/lib/process/exec.ts +++ b/lib/process/exec.ts @@ -7,7 +7,7 @@ import { Metric, TraceUtil, } from '@emprespresso/pengueno'; -import { exec } from 'node:child_process'; +import * as child_process from 'node:child_process'; export type Command = string[] | string; export type StdStreams = { stdout: string; stderr: string }; @@ -28,7 +28,7 @@ export const getStdout = ( const env = options.clearEnv ? options.env : { ...process.env, ...options.env }; return Either.fromFailableAsync( new Promise((res, rej) => { - const proc = exec(_exec, { env }); + const proc = child_process.exec(_exec, { env }); let stdout = ''; proc.stdout?.on('data', (d: Buffer) => { const s = d.toString(); -- cgit v1.2.3-70-g09d2