* Test binary files handling
()
| 209 | * Test binary files handling |
| 210 | */ |
| 211 | async function testBinaryFiles() { |
| 212 | console.log(`${colors.yellow}Testing binary files handling...${colors.reset}`); |
| 213 | |
| 214 | const { finalResult } = await searchAndWaitForCompletion({ |
| 215 | path: EDGE_CASE_TEST_DIR, |
| 216 | pattern: 'pattern', |
| 217 | searchType: 'content' |
| 218 | }); |
| 219 | |
| 220 | const text = finalResult.content[0].text; |
| 221 | // Binary files should either be ignored or handled gracefully |
| 222 | // Should not crash the search |
| 223 | assert(typeof text === 'string', 'Should return string result even with binary files present'); |
| 224 | |
| 225 | console.log(`${colors.green}✓ Binary files test passed${colors.reset}`); |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Test large file performance |
no test coverage detected