release: WRNexusJS 0.2.54
This commit is contained in:
@@ -13,6 +13,52 @@ test("bundled UI assets are discoverable and readable", () => {
|
||||
expect(uiCss()).toContain("--wire-");
|
||||
});
|
||||
|
||||
test("PDF minimum-release and essential build-first components are bundled", () => {
|
||||
const required = [
|
||||
"Typography",
|
||||
"Form",
|
||||
"FormLabel",
|
||||
"FormHelpText",
|
||||
"FormError",
|
||||
"LoadingButton",
|
||||
"Combobox",
|
||||
"MultiSelect",
|
||||
"TimePicker",
|
||||
"DateTimePicker",
|
||||
"RecurringSchedulePicker",
|
||||
"QuietHoursPicker",
|
||||
"ConfirmationDialog",
|
||||
"DataTable",
|
||||
"FilterBar",
|
||||
"MegaMenu",
|
||||
"DesktopNavigation",
|
||||
"ProductsMegaMenu",
|
||||
"MobileNavigation",
|
||||
"MarketingPageShell",
|
||||
"ProductPageShell",
|
||||
"LegalPageShell",
|
||||
"ProductCard",
|
||||
"MetricGrid",
|
||||
"FAQ",
|
||||
"PricingComparisonTable",
|
||||
"SDKTabs",
|
||||
"LegalTableOfContents",
|
||||
"CookiePreferencesDialog",
|
||||
];
|
||||
|
||||
expect(uiComponentNames()).toEqual(expect.arrayContaining(required));
|
||||
});
|
||||
|
||||
test("component-system CSS includes responsive, theme-token, focus, and reduced-motion rules", () => {
|
||||
const css = uiCss();
|
||||
expect(css).toContain("@media (max-width: 768px)");
|
||||
expect(css).toContain("@media (max-width: 480px)");
|
||||
expect(css).toContain("@media (prefers-reduced-motion: reduce)");
|
||||
expect(css).toContain(":focus-visible");
|
||||
expect(css).toContain("var(--wire-color-surface)");
|
||||
expect(css).toContain("min-height: 44px");
|
||||
});
|
||||
|
||||
test.each(uiComponentNames())("bundled UI component %s compiles", (name) => {
|
||||
const path = join(uiComponentsDir(), `${name}.wrn`);
|
||||
expect(() => compileWireFile(readFileSync(path, "utf8"), path)).not.toThrow();
|
||||
|
||||
Reference in New Issue
Block a user