~/talk

Component wrappers and other patterns for making your tests bulletproof

Talkat Voxxed Days Crete 2025 · 2025-09-26..09-27· [testing, frontend-architecture]
slides:none on file

Guides frontend developers through a concrete pattern that replaces mocking internals with route-level integration: use Vitest and Testing Library, mock only external APIs with MSW, wrap route views in component wrappers to provide routing, state and query contexts, and assert real network requests and UI outcomes. The example reduces a complex page to four test cases (happy path plus three failure modes), keeps refactors safe, and shows a negligible 9 ms wrapper overhead.

AI-written summary · about

  1. 0:00Introduction
  2. 4:59Automated frontend testing matters
  3. 13:26Testing mistakes and pitfalls
  4. 21:05Island architecture pattern
  5. 26:01Component wrappers for tests
  6. 31:21Testing external integrations
  7. 34:13Happy and negative paths
  8. 36:19Why this approach works
  9. 37:42Q&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.