fix(ci): resolve windows test path assertion and sync protocol swift models

This commit is contained in:
Peter Steinberger
2026-02-13 02:39:27 +01:00
parent 89bfe0c944
commit 8ff89ba14c
3 changed files with 11 additions and 1 deletions

View File

@@ -546,8 +546,10 @@ describe("resolveSessionTranscriptCandidates safety", () => {
storePath,
"../../etc/passwd",
);
const normalizedCandidates = candidates.map((value) => path.resolve(value));
const expectedFallback = path.resolve(path.dirname(storePath), "sess-safe.jsonl");
expect(candidates.some((value) => value.includes("etc/passwd"))).toBe(false);
expect(candidates).toContain(path.join(path.dirname(storePath), "sess-safe.jsonl"));
expect(normalizedCandidates).toContain(expectedFallback);
});
});