feat(simulation): expose normalized terminal frames (#37135)

This commit is contained in:
Kit Langton
2026-07-15 11:13:47 -04:00
committed by GitHub
parent 83cfafc884
commit 35f14900ae
4 changed files with 56 additions and 0 deletions
@@ -25,6 +25,17 @@ test("scopes the frontend control server and reports malformed JSON", async () =
result: { focused: { editor: false }, elements: [] },
})
socket.send(JSON.stringify({ jsonrpc: "2.0", id: 2, method: "ui.capture" }))
expect(yield* Queue.take(messages)).toMatchObject({
id: 2,
result: {
cols: 100,
rows: 40,
cursor: [0, 0],
lines: expect.any(Array),
},
})
socket.send("{")
expect(yield* Queue.take(messages)).toMatchObject({
id: null,