Repository navigation
test: add unit tests for src/errors.ts and public exports snapshot - #48
Closed
sparkysolutions10-pixel wants to merge 1 commit into
Closed
sparkysolutions10-pixel wants to merge 1 commit into
sparkysolutions10-pixel wants to merge 1 commit into
Conversation
- Adds comprehensive unit tests for TransferError, AttestationNotReadyError, IrisRequestError, and SubmissionTimeoutError - Tests constructor fields, optional arguments, prototype chain, and instanceof behavior - Adds public export surface snapshot test asserting exact runtime symbols exported from src/index.ts - Fixes Parabola-org#13 Signed-off-by: sparkysolutions10-pixelmy <[email protected]>
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.
Fixes #13
/claim #13
Summary
Adds dedicated test coverage for the error taxonomy in
src/errors.tsand a public runtime export snapshot forsrc/index.ts.Changes
tests/errors.test.ts:TransferError(required fields, optionalattestationHash, optionalcodediscriminatorATTESTATION_NOT_READY)AttestationNotReadyError(withburnTxHashattachment and discrimination)IrisRequestError(with optional HTTPstatuscode)SubmissionTimeoutError(withhashattachment)instanceofbehavior across Error hierarchy.tests/exports.test.ts:src/index.jsand asserts the exact sorted list of exported runtime symbols.transfer,completeMint,resolveBurn,estimateFee,getAttestation) and error classes are properly exported as functions/constructors.Signed-off-by: sparkysolutions10-pixelmy [email protected]
💳 Verified Settlement & Payout Rails
0x40B7d9273092822341860F5610168861351e71eb