Context
The current 33 tests cover the home screen, loading screen, logger, and a sample utility. The starter's API interceptor, auth persistence, AsyncStorage wrapper, and useFetch success/error/unmount behavior have no automated coverage.
Acceptance criteria
- Tests mock network and storage and verify request token injection plus normalized API error rejection.
- Tests verify login persists the expected values only after a successful response, and logout removes both auth values.
- Tests verify storage serialization, missing keys, and malformed stored JSON behavior.
- Tests verify
useFetch success, failure, refetch, and no state update after unmount.
npm run test:ci and npm run type-check pass.
Context
The current 33 tests cover the home screen, loading screen, logger, and a sample utility. The starter's API interceptor, auth persistence, AsyncStorage wrapper, and
useFetchsuccess/error/unmount behavior have no automated coverage.Acceptance criteria
useFetchsuccess, failure, refetch, and no state update after unmount.npm run test:ciandnpm run type-checkpass.