DEV Community

Cover image for Building Lumé House Mobile: What Testing Taught Me About Shipping Safely
Christiana Mabel Nyuma
Christiana Mabel Nyuma

Posted on

Building Lumé House Mobile: What Testing Taught Me About Shipping Safely

When passing tests weren't enough

I started working on my first mobile app with curiosity. I wanted to understand what building with React Native and Expo would teach me beyond the React web projects I already knew.

Then came the difficult part. My tests were passing, but when I tried opening the app, it kept stopping. It was frustrating. I kept investigating anyway because I wanted to learn more and understand what was happening.

That experience changed the question I asked about my work. Instead of stopping at Did the tests pass?, I needed to ask: What exactly did those tests prove?

There is a separate, documented example of why that distinction matters. During an early Android cloud build, Lumé House Mobile failed during native resource linking. The saved diagnosis showed clean typechecking, lint and authentication contract checks, alongside 21 out of 21 expo-doctor checks. Yet Gradle, Android's build tool, could not find a drawable resource named splashscreen_logo.

The splash configuration had a background colour but no image. The installed splash plugin generated a style that referenced a logo without generating the logo itself. The JavaScript checks had passed, but they had not verified the native resources produced for Android.

In a follow-up check, I supplied the image property and inspected an isolated prebuild, the step that generates the native Android project. The missing image appeared at all five Android density levels. That confirmed the resource correction in the generated output. It did not confirm a complete Android build, APK installation or device launch in that session.

My experience with the app stopping at runtime and this cloud build failure are not established as the same incident. One happened while trying to open an app; the other stopped before an APK could run. Both taught me to pay attention to where a check ends and where another kind of evidence is needed.

The app behind the lessons

Lumé House Mobile is a shopping app built with Expo and React Native, designed around the same Supabase backend and commerce model as my web storefront. The project uses Expo SDK 57, React Native, TypeScript and Expo Router. I based this article on the latest repository state available during my review, rather than assuming every feature had been validated in a released build.

The source implements catalogue browsing, authentication, an account-backed cart, checkout forms, order history and details, cancellation requests, and profile and delivery defaults. Those are implemented features, not a claim that every flow has passed acceptance on every device or hosted environment.

I've written before about the transition from React to React Native. This story is about something different: the safeguards around the app, the evidence I collected, and the limits I learned to respect.

Keeping development away from production

Environment safeguards showing four app identities, EAS build profiles, build-time checks and runtime backend safeguards.

One practical question shaped the configuration work: How do I stop a development or staging build from quietly using production settings?

The project defines four application identities: development, staging, QA and production. Each identity has its own display name, Android package, iOS bundle identifier and URL scheme, with authentication callbacks derived from that scheme. If the variant is missing or unknown, the dynamic configuration refuses it rather than silently selecting production.

A build profile is related, but it is not the same as an identity. The historical preview profile, for example, uses the production identity and backend to create an internal APK; it is not staging. Development and staging profiles perform identity-only checks and reject supplied backend variables at that gate. QA, preview and production profiles require backend validation.

This distinction prevents a misleading conclusion: a configuration check passing does not mean an environment is operational. An identity-only staging build can pass its build gate while runtime backend validation still refuses access because its approved non-production reference is unset.

The development path has an explicitly approved local-backend option, with a fingerprint check for its local public key. So an unset hosted non-production reference does not mean every development launch must fail. The controlled development launcher also reads ignored local configuration, clears inherited public settings and disables automatic dotenv loading. Those behaviours were inspected in source; I did not rerun the launcher or inspect its local values for this article.

Before the backend client is created, runtime validation checks the package, bundle identifier, URL scheme and callback. Build preflight additionally checks the display name and profile mapping. Production is pinned to its expected backend, while non-production validation rejects that production reference. These are useful configuration safeguards, not proof that hosted credentials or services work.

The standard EAS build lifecycle is configured to run a pre-compilation guard. A custom workflow would have to invoke it explicitly. Metro, the JavaScript bundler, also substitutes disabled implementations for local fixture sign-in and the local backend registry outside development. Source tests inspect that substitution, but source-level safeguards alone do not certify the contents of every produced binary.

Three layers of evidence, three different answers

Three layers of evidence: source and JSX simulation, local backend contracts and physical Android device testing, with hosted production acceptance remaining unverified.

I found it helpful to separate the checks into three questions rather than treat a green result as a single verdict.

1. Does the source behave as expected under simulation? The project's TypeScript and JSX harness runs source in Node's vm environment with simulated React Native elements and hooks. Another helper uses React in Node while mocking native modules and network access. These checks can catch valuable logic and boundary problems. They are not native-renderer or physical-device acceptance.

Across successive development checkpoints, the saved test suites grew from 340 to 371 and then 381 passing tests as more checks were added, including authentication lifecycle, Android plugin and fixture boundaries. These were historical results from different source states, not fresh tests for this article or proof that a single installed build passed every check.

2. Do local backend contracts behave as expected? The saved local backend checks included 32 checks combining real local authentication/API reads with transactional SQL for commerce changes. The commerce mutations were rolled back, and follow-up records covered local authentication and profile contracts. But simulating database roles and claims in SQL is not the same as sending an order through a hosted HTTP function. Local authentication checks may also change session metadata even when commerce changes are rolled back.

3. What happened on a phone? Saved Samsung Android device reports cover account and profile/delivery checks using the local development setup. At a later milestone, an internal Android candidate was installed and launched on a physical phone without Metro, the development server. That was meaningful device evidence, but it did not validate every feature or later change in the codebase.

Each layer answers something useful. None replaces the others. Current hosted Google sign-in, hosted row-level security and delivered order emails remain unverified by the evidence used here.

Small words, important contracts

Some of the most useful QA lessons came from describing features precisely.

Take checkout. The mobile screen collects contact, fulfilment and payment-method information, but it explicitly says that no money is collected and that a provider number is not verified. The local order contract begins with payment status awaiting_payment. Calling that a completed payment would be inaccurate. The source also uses the canonical Sierra Leone country code.

Or take cancellation. The app can record and retrieve a cancellation request. It does not directly change order status, stock or payment, and the customer contract has no withdrawal operation. “Request cancellation” is more accurate than “cancel order,” because the shop still needs to make a decision.

The same applies to profile defaults. There is room for one optional default delivery address, and it may be empty. Supplied phone numbers are normalized and checked against Sierra Leone formatting. The saved local contract describes owner-only access, but that is not a fresh verification of hosted ownership policies.

Accessibility also showed why the date of a finding matters. During account QA, I found that static identity text was missing from TalkBack navigation. A subsequent fix introduced a merged account header and validation feedback alert. A follow-up record reports device verification, and the relevant structures appear in the inspected source. That resolves the earlier recorded issue without proving whole-app accessibility or acceptance of the current binary.

Android text scaling offers another example: the source includes a font-scale configuration plugin, and a saved Samsung observation identifies the effective setting in the system namespace. The lesson is not that one check is better than all the others. It is that a setting in source and a result on a device are different pieces of evidence.

Shipping has more than one milestone

The project later declared a newer Android version, but the inspected repository did not contain a matching APK or acceptance record. Changing a version label is not proof that a build was produced or tested.

An earlier internal Android APK, by contrast, has saved installation and launch evidence. A byte-identical local handoff copy was prepared, but the record says it had not been sent. That is an internal testing milestone, not a public Play Store release.

For iOS, the repository has identity configuration and readiness documentation, but the saved records do not establish a native iOS build, TestFlight or App Store delivery. An earlier production release gate was blocked; that historical decision should not be mistaken for a fresh assessment of later changes.

This is what BUILD • VALIDATE • SHIP means to me in this project. BUILD describes what has been implemented. VALIDATE asks what was actually checked, in which environment, against which version. SHIP recognizes an internal Android testing milestone without pretending that public release is complete.

I began curious. The frustrating parts did not make the learning straightforward, but I kept going because I wanted to understand more. One lesson has stayed with me: a passing test is evidence, not a promise. I want to know not only whether something works, but where, how and under what conditions I can prove it.

Top comments (0)