Skip to content

Increase Unit Test Coverage for Backend Handlers #7

@armaan-71

Description

@armaan-71

Context

We currently rely on manual verification. We need robust unit tests to ensure stability as the codebase grows.

Goals

  • Add Jest unit tests for createRun and processRun handlers.
  • Mock AWS SDK calls using aws-sdk-client-mock.

Implementation Details

  • Configure Jest in backend/ directory.
  • Write tests for:
    • Success scenarios (correct DynamoDB calls).
    • Error handling (e.g., dynamo write failure).
    • Input validation.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions