Repository navigation
Add unit tests for HealthController, IpfsService, GistCleanupService and live Soroban paths - #1518
Merged
BigBen-7 merged 1 commit intoOct 15, 2026
Conversation
…and live Soroban paths
|
@demilade18-git 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! 🚀 |
2 tasks
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 #1413
Closes #1414
Closes #1415
Closes #1416
health.controller.spec.ts: both checks pass, database fails, PostGIS fails, both fail, and the error message is surfacedipfs.service.spec.ts: dev-modepinJson(mock CID) andgetJson, livepinJsonwith a mocked Pinata client, retry-then-succeed, retry-then-fail, andgetJsonagainst the configured gateway (success and error status)soroban.service.live.spec.ts: mocked RPC server covering the success path and one failure path forpostGist,getGist,isActive,listGistsByCell,getAdmin,reportGistandgetEventsSince, includingGistContractErrormapping from a contractErrresultgist-cleanup.service.spec.ts:handleExpiredGists()callsdeleteExpired, logs only when the count is above zero, and a repository error propagates (the method does not catch; the test pins that behaviour)Tests were written but not run (no dependencies installed).