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
commit 35f14900ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 56 additions and 0 deletions

View file

@ -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,