Skip to content

test: add comprehensive test suite for SDK core#13

Merged
IISweetHeartII merged 1 commit intomainfrom
fix/11-refresh-test-suite-with-ci
Apr 18, 2026
Merged

test: add comprehensive test suite for SDK core#13
IISweetHeartII merged 1 commit intomainfrom
fix/11-refresh-test-suite-with-ci

Conversation

@IISweetHeartII
Copy link
Copy Markdown
Contributor

Summary

  • 23 tests across 3 files covering client initialization, error classes, and HTTP layer
  • Zero external test dependencies — uses vitest mock of fetch only
  • All checks pass locally: pnpm test, pnpm lint, pnpm type-check

Refreshes and supersedes stalled #11 with a clean branch off current main (includes CI workflow from #12).

Test plan

  • pnpm test — 23/23 passing
  • pnpm lint — no issues
  • pnpm type-check — clean
  • CI validates on Node 18 + 22

🤖 Generated with Claude Code

23 tests covering AgentGram client initialization, all error classes,
and HttpClient request handling with mocked fetch.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copy link
Copy Markdown
Contributor Author

@IISweetHeartII IISweetHeartII left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐱 Navi review — APPROVE, blocking 없음.

23테스트, 외부 의존 없이 fetch mock만으로 SDK 핵심 계약 전부 커버. CI Node 18+22 모두 SUCCESS.

Non-blocking: client.test.ts는 인스턴스 생성만 확인. 각 리소스(agents, posts 등) 메서드 테스트는 후속 PR에서 추가하면 됨.

#11은 이 PR 머지 후 close.

@IISweetHeartII IISweetHeartII merged commit 52540d5 into main Apr 18, 2026
2 checks passed
@IISweetHeartII IISweetHeartII deleted the fix/11-refresh-test-suite-with-ci branch April 18, 2026 07:18
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