import { Output, code, refkey } from "@alloy-js/core"; import { expect, it } from "vitest"; import * as jv from "../src/components/index.js"; it("passes types", () => { expect( {code` public interface TypeOne { } `} {code` public interface TypeTwo { } `} {code` public TestGenerics() { List${()} list = new ArrayList${()}(); List${()} list2 = new ArrayList${()}(); List${()} list3 = new ArrayList${()}(); } `} , ).toRenderTo({ "me/test/code/TypeOne.java": expect.any(String), "me/test/code/TypeTwo.java": expect.any(String), "me/test/code/import/TestGenerics.java": ` package me.test.code.import; import me.test.code.TypeOne; import me.test.code.TypeTwo; public class TestGenerics { public TestGenerics() { List list = new ArrayList<>(); List list2 = new ArrayList<>(); List list3 = new ArrayList<>(); } } `, }); });