test: fix Windows CI execution and resolve exposed platform failures (#24476)

This commit is contained in:
Emily Hedlund
2026-04-03 08:50:29 -07:00
committed by GitHub
parent 7a70ab9a5d
commit ca0e6f9bd9
21 changed files with 308 additions and 175 deletions
+4 -2
View File
@@ -532,7 +532,9 @@ describe('GrepTool', () => {
expect(result.llmContent).toContain('L1: hello world');
// Should NOT be a match (but might be in context as L2-)
expect(result.llmContent).not.toContain('L2: second line with world');
expect(result.llmContent).toContain('File: sub/fileC.txt');
expect(result.llmContent).toContain(
`File: ${path.join('sub', 'fileC.txt')}`,
);
expect(result.llmContent).toContain('L1: another world in sub dir');
});
@@ -546,7 +548,7 @@ describe('GrepTool', () => {
expect(result.llmContent).toContain('Found 2 files with matches');
expect(result.llmContent).toContain('fileA.txt');
expect(result.llmContent).toContain('sub/fileC.txt');
expect(result.llmContent).toContain(path.join('sub', 'fileC.txt'));
expect(result.llmContent).not.toContain('L1:');
expect(result.llmContent).not.toContain('hello world');
});