Skip to content

Commit e30678a

Browse files
committed
test: normalize ripgrep path assertion on windows
1 parent 771b29a commit e30678a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/test/file/ripgrep.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe("file.ripgrep", () => {
5151
})
5252

5353
expect(hits.length).toBe(1)
54-
expect(hits[0]?.path.text).toBe("match.ts")
54+
expect(path.basename(hits[0]?.path.text ?? "")).toBe("match.ts")
5555
expect(hits[0]?.line_number).toBe(1)
5656
expect(hits[0]?.lines.text).toContain("needle")
5757
})

0 commit comments

Comments
 (0)