test(terminal): type the reproduction input observer

This commit is contained in:
paseo-bot[bot]
2026-10-16 03:04:57 +02:00
parent 0d1f13556f
commit a0b7841ef4
@@ -11,7 +11,13 @@ function mountTerminal() {
root.append(host);
document.body.append(root);
const runtime = new TerminalEmulatorRuntime({ isMac: false });
runtime.setCallbacks({ callbacks: { onInput: (data) => inputs.push(data) } });
runtime.setCallbacks({
callbacks: {
onInput: (data) => {
inputs.push(data);
},
},
});
runtime.mount({ root, host, initialSnapshot: null, scrollback: 1000, theme: {} });
return {
inputs,