import { expect, test } from "bun:test";
import { readFileSync } from "node:fs";
import { join } from "node:path";
import { uiComponentNames, uiComponentsDir, uiCss } from "../src/index.ts";

test("bundled UI assets are discoverable and readable", () => {
  expect(uiComponentNames()).toContain("button");
  expect(readFileSync(join(uiComponentsDir(), "button.wrn"), "utf8")).toContain("component Button");
  expect(uiCss()).toContain("--wire-");
});
