Kaynağa Gözat

test: normalize ripgrep path assertion on windows

Dax Raad 1 ay önce
ebeveyn
işleme
e30678a088
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      packages/opencode/test/file/ripgrep.test.ts

+ 1 - 1
packages/opencode/test/file/ripgrep.test.ts

@@ -51,7 +51,7 @@ describe("file.ripgrep", () => {
     })
 
     expect(hits.length).toBe(1)
-    expect(hits[0]?.path.text).toBe("match.ts")
+    expect(path.basename(hits[0]?.path.text ?? "")).toBe("match.ts")
     expect(hits[0]?.line_number).toBe(1)
     expect(hits[0]?.lines.text).toContain("needle")
   })