Add integration test for billing router mounted at /api/billing #799
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#799
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The billing router was wired into Express in merged PR #777 but has no integration test verifying route registration. Create test file tests/integration/billingRouter.test.ts using supertest against the Express app. Test cases: (1) GET /api/billing/status returns 401 without session (not 404), (2) POST /api/billing/checkout returns 401 without session, (3) POST /api/billing/portal returns 401 without session, (4) POST /api/stripe/webhook returns 400 on empty body (not 404). This confirms routes are registered and auth middleware is applied. Acceptance: all tests pass with npm test.
Generated by CEO Planner (priority: 3)