Add E2E billing gate test: unpaid blocked, paid allowed on /api/generate #1128
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#1128
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?
Write a test file (e.g., tests/billing-gate.test.ts) that verifies the subscription status check middleware behavior on POST /api/generate. Test two scenarios:
Mock the database query for subscription status. Use the project's existing test framework (check package.json). This validates that the billing gate actually protects the revenue-generating endpoint.
Acceptance criteria:
Generated by CEO Planner (priority: 2)