From de4dab93cb25b88323b70f324f39b9d167d97379 Mon Sep 17 00:00:00 2001 From: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com> Date: Wed, 16 Sep 2026 20:38:58 -0400 Subject: [PATCH] test(shared): drop the duplicated separator-only git grep test (#21116) 55ae3b393c pasted the same test twice under one title; the code-quality lint denies duplicate titles, so every PR's static-analysis job has been red since. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb --- src/shared/text-search.test.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/shared/text-search.test.ts b/src/shared/text-search.test.ts index b6528daf6e7..1517e070b4e 100644 --- a/src/shared/text-search.test.ts +++ b/src/shared/text-search.test.ts @@ -405,23 +405,6 @@ describe('ingestGitGrepLine', () => { expect(f.matches[0]).toMatchObject({ line: 10, column: 1, matchLength: 12 }) }) - it('does not broaden a separator-only include pattern to the repository', () => { - const rootPath = mkdtempSync(join(tmpdir(), 'orca-search-git-')) - try { - execFileSync('git', ['init'], { cwd: rootPath, stdio: 'ignore' }) - writeFileSync(join(rootPath, 'target.ts'), 'needle\n') - - expect(() => - execFileSync('git', buildGitGrepArgs('needle', { includePattern: '/' }), { - cwd: rootPath, - stdio: 'ignore' - }) - ).toThrow() - } finally { - rmSync(rootPath, { recursive: true, force: true }) - } - }) - it('handles colons in filenames via null delimiter', () => { const acc = createAccumulator() const re = buildSubmatchRegex('x', {})