Skip to content

Commit 05e63a7

Browse files
committed
fix(test): update neo4j bolt test to schema v2 :CanNode label
The container-gated bolt test still queried the v1-era :Symbol label, which no longer exists in schema v2 (every project-owned node carries :CanNode plus a specific kind label). Since :CanNode spans ALL kinds (not just the signature-keyed declaration types v1's :Symbol covered), the exhaustiveness check now enumerates all 11 specific labels that merge under :CanNode per schema.neo4j.json: Module, Class, Interface, Enum, TypeAlias, Namespace, Callable, Field, BodyNode, External, AnonymousCallable.
1 parent a68d4c3 commit 05e63a7

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

test/neo4j-bolt.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,14 @@ containerSuite("neo4j bolt writer", () => {
9696
expect(await num("MATCH (n) RETURN count(n)")).toBe(rows.nodes.length);
9797
expect(await num("MATCH ()-[r]->() RETURN count(r)")).toBe(rows.edges.length);
9898

99-
// Shared :Symbol label spans the signature-keyed declaration kinds.
100-
const symbol = await num("MATCH (s:Symbol) RETURN count(s)");
99+
// Shared :CanNode label spans every project-owned node kind (schema v2's universal
100+
// merge label — Application is the only node kind that sits outside it).
101+
const canNode = await num("MATCH (s:CanNode) RETURN count(s)");
101102
const kinds = await num(
102-
"MATCH (s:Symbol) WHERE s:Callable OR s:Class OR s:Interface OR s:Enum OR s:TypeAlias OR s:Namespace OR s:External RETURN count(s)",
103+
"MATCH (s:CanNode) WHERE s:Module OR s:Class OR s:Interface OR s:Enum OR s:TypeAlias OR s:Namespace OR s:Callable OR s:Field OR s:BodyNode OR s:External OR s:AnonymousCallable RETURN count(s)",
103104
);
104-
expect(symbol).toBeGreaterThan(0);
105-
expect(kinds).toBe(symbol);
105+
expect(canNode).toBeGreaterThan(0);
106+
expect(kinds).toBe(canNode);
106107

107108
// Constraints + indexes were created up front.
108109
expect(await num("SHOW CONSTRAINTS YIELD name RETURN count(*)")).toBeGreaterThanOrEqual(8);

0 commit comments

Comments
 (0)