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")), ); });