Skip to content

test: add TypeScript SDK utility tests#599

Open
MD-Mushfiqur123 wants to merge 1 commit into
Agent-Field:mainfrom
MD-Mushfiqur123:tests/ts-utils
Open

test: add TypeScript SDK utility tests#599
MD-Mushfiqur123 wants to merge 1 commit into
Agent-Field:mainfrom
MD-Mushfiqur123:tests/ts-utils

Conversation

@MD-Mushfiqur123
Copy link
Copy Markdown

Closes #406

Adds additional edge case tests to existing TypeScript SDK utility test files:

utils_pattern.test.ts (5 new tests):

  • Empty pattern
  • Empty value
  • Multiple wildcards
  • Dots and plus signs
  • Wildcard prefix with suffix

utils_schema.test.ts (5 new tests):

  • Nested zod objects with arrays and optionals
  • Zod enums
  • Non-object non-zod values
  • Preserves $schema on plain objects
  • Zod with default values

utils_http_agents.test.ts (2 new tests):

  • httpAgent instanceof check
  • httpsAgent instanceof check
cd sdk/typescript && npm run test:core -- tests/utils_*.test.ts
Tests  24 passed (24)

PR generated by AI agent.

@MD-Mushfiqur123 MD-Mushfiqur123 requested review from a team and AbirAbbas as code owners May 28, 2026 07:16
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Developer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

[TS SDK] Add tests for utils (pattern, schema, httpAgents)

2 participants