Skip to content

Add helper for building a test HTTP request with all required auth headers pre-populated #564

Merged
Chucks1093 merged 4 commits into
accesslayerorg:mainfrom
chiscookeke11:issue-552
Jun 29, 2026
Merged

Add helper for building a test HTTP request with all required auth headers pre-populated #564
Chucks1093 merged 4 commits into
accesslayerorg:mainfrom
chiscookeke11:issue-552

Conversation

@chiscookeke11

Copy link
Copy Markdown
Contributor

Summary

  • Added a reusable test utility for generating authenticated Supertest requests with valid Stellar wallet signatures.
  • Introduced buildAuthHeaders() and buildAuthRequest() to reduce duplication across integration tests for mutating endpoints.
  • Supported POST, PUT, PATCH, and DELETE requests with automatic authentication headers.
  • Allowed injection of a lightweight Express app to simplify test setup and avoid compiling full application dependencies.
  • Added unit tests verifying authenticated POST and DELETE requests successfully pass the requireStellarSignature middleware.

Testing

  • pnpm lint
  • pnpm build
  • pnpm exec prisma generate when schema or generated types changed

Checklist

  • Linked issue or backlog item
  • No secrets or live credentials added
  • Docs updated if setup or env changed
  • Change is scoped to one problem

Closes #552

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@chiscookeke11 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

…or-404-error-response

Return 404 for missing creator detail (GET /api/v1/creators/:id)
@Chucks1093 Chucks1093 merged commit 06451b7 into accesslayerorg:main Jun 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add helper for building a test HTTP request with all required auth headers pre-populated

2 participants