import { Output, refkey, StatementList } from "@alloy-js/core"; import { d } from "@alloy-js/core/testing"; import { expect, it } from "vitest"; import * as ts from "../src/index.js"; it("should instantiate classes", () => { const varRk = refkey(); const classRk = refkey(); const memberRk = refkey(); expect( 42 , ).toRenderTo({ "inst.ts": d` import { Foo } from "./decl.js"; export const one = new Foo(); `, "decl.ts": d` class Foo { instanceProp = 42; } `, }); });