`packages/referral-web/src/utils/platformDetect.ts` has no test coverage. It's small (23 lines) and detects iOS/Android/desktop from the user agent — a good first look at the codebase.
Every other package (`referral-sdk-node`, `referral-sdk` PHP, `referral-mobile`) has real test coverage; `referral-web` currently has none. This is one of four issues opened to close that gap, one small file at a time.
Look at how the sibling packages structure their tests (e.g. `packages/referral-sdk-node/src/services/fingerprintMatcher.test.ts`) for the project's testing conventions.
`packages/referral-web/src/utils/platformDetect.ts` has no test coverage. It's small (23 lines) and detects iOS/Android/desktop from the user agent — a good first look at the codebase.
Every other package (`referral-sdk-node`, `referral-sdk` PHP, `referral-mobile`) has real test coverage; `referral-web` currently has none. This is one of four issues opened to close that gap, one small file at a time.
Look at how the sibling packages structure their tests (e.g. `packages/referral-sdk-node/src/services/fingerprintMatcher.test.ts`) for the project's testing conventions.