~/talk

Cypress Component Testing

Talkat ViteConf 2022 · 2022-10-11..10-12· [testing, web-platform]
slides:none on file

Demonstration of Cypress component testing with Vite shows a live test-driven workflow: Cypress 10 opens components in Chrome 105, mounts a Vue counter with min/max/initial props, edits code and tests hot-reload, and verifies increment/decrement behavior; style processing runs in a real browser and a run completes in about 376 ms. The runner accepts any Vite config and even renders markdown files as components via the Cypress‑Vite plugin, trading raw speed for full-browser fidelity.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03What is component testing
  3. 2:30Setting up the counter
  4. 4:20Testing decrement logic
  5. 8:07Testing increment logic
  6. 9:14Adding min and max props
  7. 13:26Styling and debugging
  8. 17:29Testing unusual components
  9. 19:09Cypress vs Vitest
~/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.