~/lightning

Testing a Redux store

Lightningat React Alicante 2018 · on Saturday, 2018-09-15· [testing]
slides:none on file

An assertion library extension is built that creates a real store with a test middleware so dispatched actions and state transitions are observed end to end including saga side effects; it adds an eventually assertion for async actions plus a partial state matcher and ordered-state checks. Tests dispatch an action and wait for specific actions and states to appear; this setup runs against production code for about a year and now covers all Redux tests at the company.

AI-written summary · about

  1. 0:00Testing Redux stores
  2. 1:08Redux store example
  3. 2:56Testing Redux reducers
  4. 4:20Redux middleware testing
  5. 6:49Requirements for Redux testing
  6. 7:53Custom Chai helper for Redux
  7. 9:01Async actions with eventually
  8. 9:44State transitions with partial comparisons
  9. 10:47Ordered state transitions
  10. 11:29Benefits of new testing
  11. 12:11Documenting store behavior
  12. 12:54Open sourcing solution
  13. 13:17Extending to other libraries
  14. 13:38Q&A
~/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.