~/talk

We May Not Need Component Testing

Talkat Vue.js Live 2024 · 2024-04-25..04-26· [vue, testing]
slides:none on file

Compares Vitest + Vue Test Utils versus Playwright component testing using a tiny pizza-store demo (card and search components) and three scenarios each: toggle popover, render items, and remove item; Vitest mounts components, easily mocks composables and emits, runs fast but offers no real browser or CSS verification; Playwright runs in a real browser, verifies routing and visible styling and supports behavioral/accessibility flows, but mocking composables (and isolating remove-item) requires extra workarounds. Recommends Vitest for small isolated unit tests and Playwright for integration/visual needs.

AI-written summary · about

  1. 0:00We May Not Need Component Testing
  2. 2:14Where should Component Testing belong?
  3. 4:44Unit test or Integration test?
  4. 5:01Demo app
  5. 7:09Demo
  6. 22:46Vitest vs Playwright
~/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.