import { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "@chopin/visuals"; import type { TableBodyProps, TableCellProps, TableFooterProps, TableHeaderProps, TableHeadProps, TableProps, TableRowProps, } from "@chopin/visuals"; import { expect, test } from "bun:test"; import { renderToStaticMarkup } from "react-dom/server"; test("exports the complete native presentation table API", () => { let table: TableProps = { variant: "contained" }; let header: TableHeaderProps = {}; let body: TableBodyProps = {}; let footer: TableFooterProps = {}; let row: TableRowProps = {}; let head: TableHeadProps = { scope: "col" }; let cell: TableCellProps = { headers: "status" }; expect([ Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, ].every(component => typeof component === "function")).toBe(true); expect(table.variant).toBe("contained"); expect([header, body, footer, row, head, cell]).toHaveLength(6); }); test( "renders native table elements with authoritative slots and forwarded semantic attributes", () => { let markup = renderToStaticMarkup(