release: WRNexusJS 0.2.51

This commit is contained in:
2026-07-19 13:38:23 +05:30
parent 17dc7c1a06
commit df4c1d3e7d
203 changed files with 1713 additions and 237 deletions
+6
View File
@@ -1,6 +1,7 @@
import { expect, test } from "bun:test";
import { readFileSync } from "node:fs";
import { join } from "node:path";
import { compileWireFile } from "../../compiler/src/index.ts";
import { uiComponentNames, uiComponentsDir, uiCss } from "../src/index.ts";
test("bundled UI assets are discoverable and readable", () => {
@@ -8,3 +9,8 @@ test("bundled UI assets are discoverable and readable", () => {
expect(readFileSync(join(uiComponentsDir(), "Button.wrn"), "utf8")).toContain("component Button");
expect(uiCss()).toContain("--wire-");
});
test.each(uiComponentNames())("bundled UI component %s compiles", (name) => {
const path = join(uiComponentsDir(), `${name}.wrn`);
expect(() => compileWireFile(readFileSync(path, "utf8"), path)).not.toThrow();
});