Skip to content

[Backend] Unit and integration tests for all API routes #14

Open

Description

@Gbangbolaoluwagbemiga

Overview

Zero tests exist in the backend. All routes need happy-path and error-path coverage.

```bash
cd backend && npm install -D vitest supertest @types/supertest
```

Mock Supabase and Groq via `vi.mock()`.

Routes to test

Route Happy Error
`POST /messages` stored invalid body
`GET /inbox/:address` conversations bad address
`POST /notifications` created invalid payload
`GET /notifications/:address` list not found

Acceptance criteria

  • `npm test` passes in `backend/`
  • ≥ 70% line coverage
  • Tests run in CI

Activity

  1. rupesh-kumar-sah commented on Oct 2, 2026

    @rupesh-kumar-sah

    Hi team,

    I would like to take on and implement this issue: [Backend] Unit and integration tests for all API routes.

    Technical Implementation Roadmap:

    1. Deep Codebase Audit: Inspect current architecture and data flows in Centurylong/SecureFlow-scaffold to design an optimal, idiomatic solution.
    2. Core Modular Implementation: Implement [Backend] Unit and integration tests for all API routes with clean separation of concerns and robust error handling.
    3. Comprehensive Automated Test Matrix: Add end-to-end integration and unit tests covering positive execution and edge failure modes.
    4. Production CI Verification: Ensure all linters, formatting checks, and GitHub Actions workflows pass with 100% green status.

    I have worked extensively on similar architectures and can deliver this cleanly within 24 hours. Please assign to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignbackendNode/Supabase backendtestingTests and coverage

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions