Description
Grow automated tests beyond health.test.ts: cover full streams API surface with supertest.
Requirements and context
- Use app export from
index.ts without binding port where possible.
- Table-driven cases for validation errors.
Suggested execution
- Fork the repository and create a branch (example below).
- Implement changes in StreamPay-Backend (TypeScript / Express per
package.json).
- Keep the service secure, tested, and documented; prefer small, reviewable PRs.
git checkout -b test/streams-api-supertest
Implementation targets
src/__tests__/streams.test.ts (or tests/).
Tests and validation
-
Aim for high branch coverage on handlers.
-
Run npm test and npm run lint in StreamPay-Backend.
-
Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
- Target minimum 95% test coverage on new or changed backend code (or justify gaps).
- Clear documentation (OpenAPI / README / inline docs as specified).
- Timeframe: 96 hours from assignment.
Example commit message
test(backend): supertest coverage for streams endpoints
Description
Grow automated tests beyond
health.test.ts: cover full streams API surface with supertest.Requirements and context
index.tswithout binding port where possible.Suggested execution
package.json).Implementation targets
src/__tests__/streams.test.ts(ortests/).Tests and validation
Aim for high branch coverage on handlers.
Run
npm testandnpm run lintinStreamPay-Backend.Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
Example commit message