Add billing auth smoke test for /api/billing/* routes #1393

Open
opened 2026-04-13 17:04:20 -04:00 by pook · 0 comments
Owner

Create test/smoke/billing-auth.test.ts verifying billing endpoints reject unauthenticated requests. Test: (1) GET /api/billing/status returns 401, (2) POST /api/billing/checkout returns 401, (3) POST /api/billing/portal returns 401 — all without Authorization header. Ensures auth middleware is properly applied to the billing router mounted in PR #777. Acceptance: 3 passing test cases confirming 401 responses.


Generated by CEO Planner (priority: 3)

Create test/smoke/billing-auth.test.ts verifying billing endpoints reject unauthenticated requests. Test: (1) GET /api/billing/status returns 401, (2) POST /api/billing/checkout returns 401, (3) POST /api/billing/portal returns 401 — all without Authorization header. Ensures auth middleware is properly applied to the billing router mounted in PR #777. Acceptance: 3 passing test cases confirming 401 responses. --- *Generated by CEO Planner (priority: 3)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#1393
No description provided.