Skip to content

Commit 56d5cb3

Browse files
committed
fix(test): normalize path separators for Windows in list subdirectory test
1 parent 40a14d2 commit 56d5cb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/opencode/test/file/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,8 +627,8 @@ describe("file/index Filesystem patterns", () => {
627627
const nodes = await File.list("sub")
628628
expect(nodes.length).toBe(2)
629629
expect(nodes.map((n) => n.name).sort()).toEqual(["a.txt", "b.txt"])
630-
// Paths should be relative to project root
631-
expect(nodes[0].path.startsWith("sub/")).toBe(true)
630+
// Paths should be relative to project root (normalize for Windows)
631+
expect(nodes[0].path.replaceAll("\\", "/").startsWith("sub/")).toBe(true)
632632
},
633633
})
634634
})

0 commit comments

Comments
 (0)