diff --git a/tests/instance/modloaders/forge.test.ts b/tests/instance/modloaders/forge.test.ts index 6707a66..13e1533 100644 --- a/tests/instance/modloaders/forge.test.ts +++ b/tests/instance/modloaders/forge.test.ts @@ -31,6 +31,10 @@ test("launch game", { timeout: 0 }, async () => { }); await new Promise((res) => { + p.on("error", (d: Buffer) => { + console.log(d.toString()); + res(); + }); p.on("close", () => { console.log("closed"); res(); diff --git a/tests/instance/modloaders/neoforge.test.ts b/tests/instance/modloaders/neoforge.test.ts index 3a1afe0..b0fefc8 100644 --- a/tests/instance/modloaders/neoforge.test.ts +++ b/tests/instance/modloaders/neoforge.test.ts @@ -31,6 +31,10 @@ test("launch game", { timeout: 0 }, async () => { }); await new Promise((res) => { + p.on("error", (d: Buffer) => { + console.log(d.toString()); + res(); + }); p.on("close", () => { console.log("closed"); res(); diff --git a/tests/instance/vanilla/vanilla.test.ts b/tests/instance/vanilla/vanilla.test.ts index ca3d5a9..0d03694 100644 --- a/tests/instance/vanilla/vanilla.test.ts +++ b/tests/instance/vanilla/vanilla.test.ts @@ -25,11 +25,11 @@ test("launch game", { timeout: 0 }, async () => { console.log(d.toString()); }); - p.on("error", (d: Buffer) => { - console.log(d.toString()); - }); - await new Promise((res) => { + p.on("error", (d: Buffer) => { + console.log(d.toString()); + res(); + }); p.on("close", () => { console.log("closed"); res();