Skip to content

test: cover client error edge cases, proxy validation and CJS build - #15

Merged
dzmitry-duboyski merged 1 commit into
mainfrom
test/coverage-gaps
Nov 11, 2026
Merged

dzmitry-duboyski merged 1 commit into
mainfrom
test/coverage-gaps

Conversation

@dzmitry-duboyski

Copy link
Copy Markdown
Contributor

Adds unit tests for previously uncovered paths. No SDK source changes.

  • Client errors: non-2xx HTTP status, invalid JSON body, non-Error rejection, ApiError fallbacks, ready result without solution
  • Task validation: missing proxy parameters for every proxy task type
  • CommonJS build: require() smoke tests for the main entry and subpaths (previously only the ESM build was loaded by tests)

Unit tests: 98 => 112, branch coverage 81% => 89%.

- client: non-2xx HTTP status, invalid JSON body, non-Error rejection,
  ApiError fallbacks (UNKNOWN_ERROR, "error" field), ready result
  without solution
- task validation: missing proxy parameters for every proxy task type
- public API: require() smoke tests for the CommonJS build and subpaths

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dzmitry-duboyski
dzmitry-duboyski merged commit 526ae22 into main Nov 11, 2026
6 checks passed
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.

1 participant