UNPKG

@moonwall/cli

Version:

Testing framework for the Moon family of projects

32 lines (31 loc) 876 B
import type { ChildProcess } from "node:child_process"; import fs from "node:fs"; import type { DevLaunchSpec } from "@moonwall/types"; /** * Extended ChildProcess interface with Moonwall termination tracking */ export interface MoonwallProcess extends ChildProcess { /** * Flag indicating if this process is being terminated by Moonwall */ isMoonwallTerminating?: boolean; /** * Reason for Moonwall-initiated termination */ moonwallTerminationReason?: string; /** * Effect-based cleanup function for automatic resource management */ effectCleanup?: () => Promise<void>; } export declare function launchNode(options: { command: string; args: string[]; name: string; launchSpec?: DevLaunchSpec; }): Promise<{ runningNode: any; fsStream: fs.WriteStream; } | { runningNode: MoonwallProcess; }>;