import { test, expect } from "bun:test" import { runTscircuitCode } from "tscircuit" import { getGraphicsForBpcGraph } from "bpc-graph" import { convertCircuitJsonToBpc } from "../lib" test("example01", async () => { const circuitJson = await runTscircuitCode(` export default () => ( ) `) const bpcGraph = convertCircuitJsonToBpc(circuitJson) const graphics = getGraphicsForBpcGraph(bpcGraph) expect(graphics).toMatchGraphicsSvg(import.meta.path, { backgroundColor: "white", }) })