Problem
Zero tests in the entire codebase. package.json confirms:
"test": "echo \"No tests yet\" && exit 0"
This is a financial supply chain app handling:
- Worker payroll via Lightning Network
- Coffee lot custody transfers
- QR-based attendance tracking
A bug could literally cost people money or lose coffee traceability data.
What Needs Testing
Unit Tests (Jest)
Integration Tests
E2E Tests (Detox/Maestro)
Suggested Test Setup
# Add testing deps
npm install --save-dev jest @testing-library/react-native @testing-library/jest-native nock
# Add to package.json
"scripts": {
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage"
}
Acceptance Criteria
Problem
Zero tests in the entire codebase. package.json confirms:
This is a financial supply chain app handling:
A bug could literally cost people money or lose coffee traceability data.
What Needs Testing
Unit Tests (Jest)
utils/api.ts- All API functions with mocked fetchtheme.ts- Color/spacing constants existIntegration Tests
E2E Tests (Detox/Maestro)
Suggested Test Setup
Acceptance Criteria
utils/api.ts)