import { test, expect } from "bun:test" import { ptyToHtml } from "./ffi.js" test("ptyToHtml - converts colored ANSI to styled HTML", () => { const ansi = `\x1b[32mHello\x1b[0m \x1b[1;31mWorld\x1b[0m!` const html = ptyToHtml(ansi, { cols: 80, rows: 5 }) expect(html).toMatchInlineSnapshot(`"