Skip to content

Add unit tests for HealthController, IpfsService, GistCleanupService and live Soroban paths - #1518

Merged
BigBen-7 merged 1 commit into
PinSpace-Org:mainfrom
demilade18-git:demilade/issues-1413-1416
Oct 15, 2026
Merged

BigBen-7 merged 1 commit into
PinSpace-Org:mainfrom
demilade18-git:demilade/issues-1413-1416

Conversation

@demilade18-git

Copy link
Copy Markdown
Contributor

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 surfaced
  • ipfs.service.spec.ts: dev-mode pinJson (mock CID) and getJson, live pinJson with a mocked Pinata client, retry-then-succeed, retry-then-fail, and getJson against the configured gateway (success and error status)
  • soroban.service.live.spec.ts: mocked RPC server covering the success path and one failure path for postGist, getGist, isActive, listGistsByCell, getAdmin, reportGist and getEventsSince, including GistContractError mapping from a contract Err result
  • gist-cleanup.service.spec.ts: handleExpiredGists() calls deleteExpired, 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).

@drips-wave

drips-wave Bot commented Oct 15, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@BigBen-7
BigBen-7 merged commit e0e4a13 into PinSpace-Org:main Oct 15, 2026
1 check failed
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