import AppKit import HelderUI import Testing @Suite struct FontRegistryTests { @Test func bundledPlexFacesRegister() { let names = FontRegistry.registerBundledFonts() for face in PlexFace.allCases { #expect(names.contains(face.rawValue), "missing \(face.rawValue)") #expect(NSFont(name: face.rawValue, size: 12) != nil) } } @Test func typeRolesResolveToPlex() { FontRegistry.registerBundledFonts() #expect(Typography.code.nsFont.fontName == "IBMPlexMono-Regular") #expect(Typography.row.nsFont.fontName == "IBMPlexSans-Regular") } } @Suite struct CommitLabelTests { @Test func theCommitLabelIsPlexSansSemiBold() { FontRegistry.registerBundledFonts() #expect(Typography.commitButton.nsFont.fontName == "IBMPlexSans-SemiBold") } }