~/talk

The Art of ‘Humble Views’: Testing React Native Apps the Smart Way

Talkat TestJS Summit 2023 · on Thursday, 2023-12-07· at 14:00· [react-native, testing]

React Native code moves business logic into a small humble object module and UI state into a single useShoppingCart hook, shrinking a 110‑line screen to ~38 lines and turning brittle component tests into fast pure‑JS unit tests. Mocking collapses from many external services and native modules down to at most one mock (the hook), MVP passive views render deterministically, and E2E stays for integration while unit tests verify core rules like barcode checksum and discount calculations.

AI-written summary · about

  1. 0:00Humble views in React Native
  2. 3:15Complex screen testing
  3. 8:54Separation of concerns in React
  4. 11:03Humble object model before/after
  5. 15:57Model View Presenter with code
  6. 19:49Pit of success in testing
  7. 21:13Recap and takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.