Overview
The service module src/services/auth.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/__tests__/auth.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/__tests__/auth.test.ts
Acceptance Criteria
- New unit tests for the module pass in CI and exercise its exports.
- All the CI passes
- Star the repo
Overview
The service module
src/services/auth.tshas no unit test. Adding focused tests documents its behaviour and guards against regressions.Specifications
Features:
Tasks:
src/services/__tests__/auth.test.tscovering 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/__tests__/auth.test.tsAcceptance Criteria