import { expect, it } from "vitest"; import * as ts from "../src/index.js"; import { TestFile } from "./utils.js"; it("renders an enum declaration with documentation", () => { const res = ( ); expect(res).toRenderTo(` /** * Color enumeration for the application */ enum Color { Red, Green, Blue, } `); }); it("renders an enum declaration with documented members", () => { const res = ( ); expect(res).toRenderTo(` /** * Represents cardinal directions. Used for navigation purposes */ enum Direction { /** * Bound to the north */ North = 0, /** * Bound to the East * * A second doc paragraph */ East = 1, /** * Opposite to North */ South = 2, /** * Going west! */ West = 3, } `); });