feat: Enhance NodeCG process management and add IPC security tests

This commit is contained in:
2026-05-24 22:13:04 +02:00
parent 2e1d3a170c
commit 54ab1fcb9f
5 changed files with 260 additions and 53 deletions
+1 -3
View File
@@ -1,5 +1,4 @@
import assert from "node:assert/strict";
import { EventEmitter } from "node:events";
import test from "node:test";
import { createApplicationController, ApplicationWindow } from "../main/app/application-controller";
@@ -68,7 +67,6 @@ function createMockManager(events: string[]): NodecgProcessManager {
return {
startNodecgProcess: async () => {
events.push("start-nodecg");
return new EventEmitter() as import("node:child_process").ChildProcess;
},
waitForNodecgReady: async () => {
events.push("wait-nodecg");
@@ -76,7 +74,7 @@ function createMockManager(events: string[]): NodecgProcessManager {
stopNodecgProcessGracefully: async () => {
events.push("stop-nodecg");
},
getProcess: () => null,
getState: () => "running",
};
}