Adds integration tests in `tests/integration/auth-jwt-validation.test… - #196
Adds integration tests in `tests/integration/auth-jwt-validation.test…#196aishagbadamosi wants to merge 1 commit into
Conversation
….ts` that verify all protected invoice endpoints return 401 Unauthorized when called without an Authorization header. Adds integration tests in `tests/integration/auth-jwt-validation.test.ts` that verify all protected invoice endpoints return 401 Unauthorized when called without an Authorization header. Endpoints covered: - GET /api/v1/invoices - POST /api/v1/invoices - GET /api/v1/invoices/:id - PUT /api/v1/invoices/:id - DELETE /api/v1/invoices/:id - POST /api/v1/invoices/:id/publish - POST /api/v1/invoices/:id/document Closes StellarState#171
|
@aishagbadamosi 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! 🚀 |
|
Hi @aishagbadamosi, thank you for your contribution! 🙏 We noticed your PR is submitted from a branch also named Please update your PR by:
This will allow our CI workflows ( |
|
Hi @aishagbadamosi! 👋 Conflict Summary & Action Required: Rebase & Branch Rename Steps:
Thanks! 🚀 |
|
Hi @aishagbadamosi! 👋 Here is a detailed breakdown of the issues on your PR and the exact steps to fix them: 📌 Issues Identified
🛠️ Step-by-Step Resolution
This will enable full GitHub Actions CI validation on your PR. Thanks! 🚀 |
|
Hi @aishagbadamosi! 👋 Rebase & Branch Rename Reminder: Quick Steps:
Thanks! 🚀 |
….ts` that verify all protected invoice endpoints return 401 Unauthorized when called without an Authorization header.
Adds integration tests in
tests/integration/auth-jwt-validation.test.tsthat verify all protected invoice endpoints return 401 Unauthorized when called without an Authorization header.Endpoints covered:
Closes #171
Description
Adds integration tests in
tests/integration/auth-jwt-validation.test.tsthat verify all protected invoice endpoints return 401 Unauthorized when called without an Authorization header.Closes #171
Type of Change
Checklist
feat:,fix:,chore:, etc.) — enforced by CI.env, or credentials committed (seeCONTRIBUTING.md)Testing
How to Test
npm testto execute all testsnpx jest tests/integration/auth-jwt-validation.test.tsTest Coverage
Screenshots (if applicable)
Additional Notes
The tests cover all protected invoice endpoints: GET, POST, GET/:id, PUT/:id, DELETE/:id, POST/:id/publish, and POST/:id/document.
For Reviewers