Menu

Our workspace runs 1,129 tests and the app people actually hold has 67 of them
📰

Our workspace runs 1,129 tests and the app people actually hold has 67 of them

DEV Community: reactnative·Daniel Pertu·16 days ago
#CVN33Qkp
#devtoreactnative#devto#dev#test#tests
Reading 0:00
15s threshold

Munchable answers one question in a shop: does this packaged food fit the gut conditions you manage? You scan the barcode and get a verdict with the reasons under it. The conditions are at munchable.app/conditions , the recipe library is at munchable.app/recipes , and the same reasoning is published page by page at munchable.app/answers .

The repo is a pnpm workspace: a React Native app through Expo, a Next.js site, and four shared packages. pnpm -r run test walks all of it. Here is the distribution, which I had never actually added up before writing this:

packages/content 474 apps/web 358 packages/rules-engine 204 apps/mobile 67 packages/pricing 25 packages/reels 1 ----- 1,129

Enter fullscreen mode

Exit fullscreen mode

The app is 20 screens and 37 components, it is the only part of this that anybody touches with their hands, and it holds six per cent of the tests. That ratio is deliberate.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.