fix(process): await Swift frontend lifetime pipe (#7948)

This commit is contained in:
morluto authored and GitHub committed 2026-10-29 08:43:04 +08:00
1 parent 0448f318e6
commit c92322b473
4 files changed
+40 -15

No files matched your search

+8
View File
@@ -68,6 +68,14 @@ it.each([undefined, "SIGTERM"] as const)(
},
);
it("rejects a lifetime pipe without a stoppable command", async () => {
await expect(
execFileOutput(process.execPath, ["-e", "process.exit(0)"], {
lifetimePipe: true,
}),
).rejects.toThrow("lifetimePipe requires stopSignal");
});
describe("execFileOutput", () => {
it("ignores non-Error and incomplete failure metadata", () => {
expect(execFileOutputFailure("failure")).toBeUndefined();