Rename package to @nym.sh/jrx

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-02-28 01:42:09 +00:00
parent 99fe5e1db9
commit e641c33f56
21 changed files with 142 additions and 142 deletions

View File

@@ -1,7 +1,7 @@
/**
* Ported from json-render's core/src/spec-validator.test.ts.
*
* Runs @json-render/core's validateSpec against Specs produced by jsonsx
* Runs @json-render/core's validateSpec against Specs produced by jrx
* to prove structural correctness.
*/
@@ -19,7 +19,7 @@ import {
Select,
} from "./test-components";
describe("validateSpec on jsonsx-produced specs", () => {
describe("validateSpec on jrx-produced specs", () => {
it("validates a simple single-element spec", () => {
const spec = render(<Text text="hello" />);
const result = validateSpec(spec);
@@ -90,7 +90,7 @@ describe("validateSpec on jsonsx-produced specs", () => {
expect(result.issues.some((i) => i.code === "watch_in_props")).toBe(false);
});
it("no orphaned elements in jsonsx output", () => {
it("no orphaned elements in jrx output", () => {
const spec = render(
<Stack>
<Text text="A" />
@@ -101,7 +101,7 @@ describe("validateSpec on jsonsx-produced specs", () => {
expect(result.issues.some((i) => i.code === "orphaned_element")).toBe(false);
});
it("no missing children in jsonsx output", () => {
it("no missing children in jrx output", () => {
const spec = render(
<Stack>
<Card title="X">