feat(process): support explicit stdin closure
This commit is contained in:
@@ -1558,6 +1558,7 @@ describe("process capture adapter", () => {
|
||||
},
|
||||
actions: [
|
||||
{ type: "send_input", data: "accepted\n", sensitive: true },
|
||||
{ type: "close_stdin" },
|
||||
],
|
||||
target: { kind: "goto", state: "finishing" },
|
||||
},
|
||||
@@ -1620,6 +1621,13 @@ describe("process capture adapter", () => {
|
||||
outcome: "dispatched",
|
||||
}),
|
||||
);
|
||||
expect(result.value.interaction_events).toContainEqual(
|
||||
expect.objectContaining({
|
||||
type: "stdin_close",
|
||||
data: "",
|
||||
outcome: "dispatched",
|
||||
}),
|
||||
);
|
||||
expect(result.value.frames.map(({ data }) => data).join("")).toContain(
|
||||
"Done",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user