mirror of
https://github.com/morluto/rea.git
synced 2026-11-09 16:26:36 +00:00
refactor(tools): remove arbitrary workflow ceilings
This commit is contained in:
1 parent
6c68ff565f
commit
5f73cb061b
28 files changed
+184
-195
No files matched your search
@@ -15,6 +15,7 @@ import {
|
||||
type JavaScriptSemanticGraphNode,
|
||||
} from "./javascriptSemanticGraph.js";
|
||||
import { queryJavaScriptSemanticGraph } from "./javascriptSemanticQuery.js";
|
||||
import type { JsonValue } from "./jsonValue.js";
|
||||
|
||||
const SHA = "a".repeat(64);
|
||||
const JAG_ID = `jag_${"b".repeat(64)}`;
|
||||
@@ -91,7 +92,7 @@ const unknownEvidence = (): ApplicationGraphEvidence => ({
|
||||
const node = (
|
||||
kind: (typeof JAVASCRIPT_SEMANTIC_NODE_KINDS)[number],
|
||||
role: string,
|
||||
properties: Record<string, string | number | boolean | null> = {},
|
||||
properties: Record<string, JsonValue> = {},
|
||||
functionNodeId: string | null = null,
|
||||
): JavaScriptSemanticGraphNode =>
|
||||
createJavaScriptSemanticGraphNode({
|
||||
@@ -319,6 +320,16 @@ it("traverses paths beyond the former fixed depth ceiling", () => {
|
||||
expect(result.nodes).toHaveLength(74);
|
||||
});
|
||||
|
||||
it("accepts deeply nested semantic properties", () => {
|
||||
let nested: JsonValue = "leaf";
|
||||
for (let index = 0; index < 12; index += 1)
|
||||
nested = { [`level-${String(index)}`]: nested };
|
||||
|
||||
const result = node("binding", "deep-properties", { nested });
|
||||
|
||||
expect(result.properties).toEqual({ nested });
|
||||
});
|
||||
|
||||
it("keeps relevant dynamic frontiers unknown", () => {
|
||||
const result = queryJavaScriptSemanticGraph(fixtureGraph(true), {
|
||||
seed: { kind: "literal", value: "TOKEN" },
|
||||
|
||||
Reference in new issue
Block a user