devin-ai-integration[bot] fa5b96c521
Add parsePDF parameter to JS SDK (#1720)
* Add parsePDF parameter to JS SDK (clean implementation)

- Add parsePDF boolean parameter to CrawlScrapeOptions interface
- Parameter automatically flows through scrape and crawl operations via spread operator
- Add comprehensive test cases for parsePDF functionality in both scrape and crawl scenarios
- Tests verify parsePDF=true and parsePDF=false behavior with PDF files

Co-Authored-By: Micah Stairs <micah@sideguide.dev>

* Fix parsePDF tests to match actual API behavior

- Update parsePDF=false test to expect base64 data instead of markdown
- Tests now properly verify the difference between parsePDF=true and parsePDF=false
- Address GitHub comment about 'hallucinated' tests by fixing unrealistic expectations

Co-Authored-By: Micah Stairs <micah@sideguide.dev>

* Update index.test.ts

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Micah Stairs <micah@sideguide.dev>
Co-authored-by: Nicolas <nicolascamara29@gmail.com>
2025-06-27 11:30:49 -03:00
..
2025-06-02 18:10:14 +02:00