Skip to content

Conversation

@Khurdhula-Harshavardhan
Copy link
Collaborator

This pull request adds comprehensive tests for the Web Search and Web Search Suggestions APIs, and updates the test configuration to support these new test files. The changes improve coverage for various search features, error handling, and edge cases, while also updating workflow and package scripts to run the new test suites.

Test coverage improvements:

  • Added a new tests/web-search.test.ts file with extensive tests for the Web Search API, covering valid queries, error scenarios, spell check, AI overview, safe search levels, custom URLs, country code, auto scrape, and input validation.
  • Included tests for the Web Search Suggestions API in tests/web-search.test.ts, covering basic queries, partial queries, empty strings, long queries, special characters, and unicode support.

Test configuration updates:

  • Updated package.json to add new test scripts: test:web:scraper and test:web:search, mapping to the new test files.
  • Modified .github/workflows/sdk-tests.yml to run the new web:scraper and web:search test jobs instead of the previous single web job.

@Khurdhula-Harshavardhan Khurdhula-Harshavardhan merged commit 4f6550a into main Dec 1, 2025
8 checks passed
@Khurdhula-Harshavardhan Khurdhula-Harshavardhan deleted the fix/web-tests branch December 1, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants