From a2ce4eb6506a61ed9f48fecd31e9085109fe3b47 Mon Sep 17 00:00:00 2001 From: Dax Date: Sat, 7 Mar 2026 21:40:57 -0500 Subject: [PATCH] test: remove unused Ripgrep.search coverage (#16554) --- packages/opencode/test/file/ripgrep.test.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/packages/opencode/test/file/ripgrep.test.ts b/packages/opencode/test/file/ripgrep.test.ts index 21bc59dc2..5eb56e53d 100644 --- a/packages/opencode/test/file/ripgrep.test.ts +++ b/packages/opencode/test/file/ripgrep.test.ts @@ -37,25 +37,6 @@ describe("file.ripgrep", () => { expect(hasHidden).toBe(false) }) - test("search returns match metadata", async () => { - await using tmp = await tmpdir({ - init: async (dir) => { - await Bun.write(path.join(dir, "match.ts"), "const value = 'needle'\n") - await Bun.write(path.join(dir, "other.ts"), "const value = 'other'\n") - }, - }) - - const hits = await Ripgrep.search({ - cwd: tmp.path, - pattern: "needle", - }) - - expect(hits.length).toBe(1) - expect(path.basename(hits[0]?.path.text ?? "")).toBe("match.ts") - expect(hits[0]?.line_number).toBe(1) - expect(hits[0]?.lines.text).toContain("needle") - }) - test("search returns empty when nothing matches", async () => { await using tmp = await tmpdir({ init: async (dir) => {