Skip to content

test: improve coverage and fix typecheck for test files#30

Merged
satoshai-dev merged 1 commit intomainfrom
fix/test-coverage-and-typecheck
Feb 24, 2026
Merged

test: improve coverage and fix typecheck for test files#30
satoshai-dev merged 1 commit intomainfrom
fix/test-coverage-and-typecheck

Conversation

@satoshai-dev
Copy link
Copy Markdown
Owner

Summary

  • Add tsconfig.check.json so tsc --noEmit now typechecks test files
  • Rewrite cli.test.ts to properly test fetchCommand (stdout TS/JSON output, invalid format)
  • Add fetcher tests: devnet URL, custom URL, network errors, malformed JSON
  • Tests go from 26 → 31

Closes #5, closes #7, closes #15

Note: Depends on #29 (fetcher error tests need the error wrapping). Merge #29 first.

Test plan

  • pnpm build passes
  • pnpm test — 31 tests pass
  • pnpm typecheck — clean (now includes test files)
  • pnpm lint — clean

🤖 Generated with Claude Code

- add tsconfig.check.json so tsc --noEmit typechecks test files
- rewrite cli.test.ts to properly test fetchCommand (stdout TS/JSON, invalid format)
- add fetcher tests: devnet URL, custom URL, network errors, malformed JSON
- tests go from 26 to 31

Closes #5, closes #7, closes #15

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@satoshai-dev satoshai-dev force-pushed the fix/test-coverage-and-typecheck branch from aba61aa to eccb455 Compare February 24, 2026 18:29
@satoshai-dev satoshai-dev merged commit 01f5efd into main Feb 24, 2026
1 check passed
@satoshai-dev satoshai-dev deleted the fix/test-coverage-and-typecheck branch February 24, 2026 18: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

1 participant