Skip to content

test: implement SDK feature tests for issues #471, #470, #469, #468 - #564

Open
janipauwels-sys wants to merge 4 commits into
Stellar-split:mainfrom
janipauwels-sys:feature/sdk-tests-471-470-469-468
Open

test: implement SDK feature tests for issues #471, #470, #469, #468#564
janipauwels-sys wants to merge 4 commits into
Stellar-split:mainfrom
janipauwels-sys:feature/sdk-tests-471-470-469-468

Conversation

@janipauwels-sys

Copy link
Copy Markdown

Summary

Implements comprehensive test suites for four critical SDK features:

Test Coverage

Each feature includes unit tests covering:

  • Happy path scenarios
  • Edge cases and error conditions
  • Event emission and hooks
  • Type correctness and serialization
  • State management and concurrency

All tests use Vitest with proper mocking and spying patterns.

Closes #471
Closes #470
Closes #469
Closes #468

- Add tests for preemptive token expiry detection
- Add tests for concurrent request queueing during refresh
- Add tests for SEP-10 challenge transaction signing
- Verify token refresh hooks fire correctly
- Test failed refresh scenarios with proper error handling

Closes Stellar-split#471
- Add tests for gap detection logic (onChainSeq - lastSubmittedSeq)
- Add tests for BumpSequenceOperation submission
- Add tests for automatic retry after gap is filled
- Add tests for zero-gap edge cases
- Verify sequence:gapFilled event emission with correct payloads

Closes Stellar-split#470
- Add tests for 2-of-3 signing sessions with threshold weights
- Add tests for partial signature collection and weight tracking
- Add tests for session token serialization stability
- Add tests for duplicate signature rejection
- Add tests for automatic submission when ready
- Verify multi-sig with varying weight distributions

Closes Stellar-split#469
- Add tests for createMockSplitClient() factory function
- Verify all public methods are vi.fn() stubs with correct signatures
- Add tests for default return values are type-correct
- Add tests for selective method override capability
- Test mock.calls tracking and mockImplementation support
- Verify independent mock instances with separate state
- Test @stellar-split/sdk/testing subpath resolution

Closes Stellar-split#468
@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@janipauwels-sys Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants