test: add Stellar SDK v14 regression suite#408
Open
DeePrincipal-dev-lang wants to merge 5 commits into
Open
Conversation
- Implement comprehensive regression test suite for @stellar/stellar-sdk v14 - 34 test assertions covering all critical SDK exports - Tests for Contract, TransactionBuilder, XDR conversion, rpc.Server APIs - XDR roundtrip validation for string, i128, u128 types - Integration tests for Soroban submission and event parsing flows - Mock network calls; validate shape not live behavior - 100% pass rate, ~0.95s execution time - Add STELLAR_SDK_UPGRADE_PROCESS.md with step-by-step upgrade guide - Add STELLAR_SDK_REGRESSION_SUITE.md with implementation details - Add STELLAR_SDK_REGRESSION_TEST_OUTPUT.md with test results Covers SDK exports used by: - src/services/soroban.ts: Contract, TransactionBuilder, nativeToScVal, Keypair, rpc.Server - src/services/eventParser.ts: xdr, scValToNative, xdr.ScVal.fromXDR Integrated into Jest config; runs automatically in CI via 'npm test'
|
@DeePrincipal-dev-lang 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #350
Summary
Adds a Stellar SDK v14 regression suite to protect the backend against future SDK breaking changes.
What changed
stellarSdkRegression.test.tssrc/services/soroban.tsContract,TransactionBuilder,nativeToScValxdr.ScVal.fromXDR,scValToNativefromsrc/services/eventParser.tsrpc.Servershape without making live network callsi128, andu128valuesdocs/STELLAR_SDK_UPGRADE_PROCESS.mddocs/STELLAR_SDK_REGRESSION_SUITE.mddocs/STELLAR_SDK_REGRESSION_TEST_OUTPUT.mdWhy
Protects the repo from future
@stellar/stellar-sdkupgrades by pinning and asserting the exact SDK surface the backend relies on.Test plan
npm test -- stellarSdkRegression.test.tsPASS ./stellarSdkRegression.test.tswith34 passed, 34 totalNotes
.test.tsfiles are already included.