Skip to content

Add unit tests for src/services/api/circuitBreaker.ts #1190

Description

@RUKAYAT-CODER

Overview

The service module src/services/api/circuitBreaker.ts has no unit test. Adding focused tests documents its behaviour and guards against regressions.

Specifications

Features:

  • The module has unit tests for its exported functions and key edge cases.

Tasks:

  • Add src/services/api/__tests__/circuitBreaker.test.ts covering the module's exports: at least one happy path each plus an error/edge case, mocking external dependencies (network, async storage, native modules).

Impacted Files:

  • src/services/api/__tests__/circuitBreaker.test.ts

Acceptance Criteria

  • New unit tests for the module pass in CI and exercise its exports.
  • All the CI passes
  • Star the repo

Activity

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

    good first issueGood for newcomerstestAdds or improves tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions