From 12fcdb8c330b3c5bc860dec2bcfe470c7c022cd3 Mon Sep 17 00:00:00 2001 From: Marc J Saint-jour <82672745+Junebugg1214@users.noreply.github.com> Date: Thu, 12 Mar 2026 19:26:16 -0400 Subject: [PATCH] test: make cortex path assertions platform neutral --- src/memory/cortex.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/memory/cortex.test.ts b/src/memory/cortex.test.ts index 04b9844a47e..7258c043a0c 100644 --- a/src/memory/cortex.test.ts +++ b/src/memory/cortex.test.ts @@ -28,12 +28,14 @@ afterEach(() => { describe("cortex bridge", () => { it("resolves the default graph path inside the workspace", () => { - expect(resolveCortexGraphPath("/tmp/workspace")).toBe("/tmp/workspace/.cortex/context.json"); + expect(resolveCortexGraphPath("/tmp/workspace")).toBe( + path.normalize(path.join("/tmp/workspace", ".cortex", "context.json")), + ); }); it("resolves relative graph overrides against the workspace", () => { expect(resolveCortexGraphPath("/tmp/workspace", "graphs/main.json")).toBe( - path.normalize("/tmp/workspace/graphs/main.json"), + path.normalize(path.resolve("/tmp/workspace", "graphs/main.json")), ); });