Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
tests/web-search.test.tsfile 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.tests/web-search.test.ts, covering basic queries, partial queries, empty strings, long queries, special characters, and unicode support.Test configuration updates:
package.jsonto add new test scripts:test:web:scraperandtest:web:search, mapping to the new test files..github/workflows/sdk-tests.ymlto run the newweb:scraperandweb:searchtest jobs instead of the previous singlewebjob.