~/talk

Vitest or Cypress? Why not both?!

Talkat vuejs.de Conf 2022 · on Wednesday, 2022-10-05· [testing]
slides:none on file

Argues that the same feature tests can run both in Cypress and Vitest by building a small driver interface (methods like findByLabelText, findByRole, findText, goTo) with two implementations: a Cypress driver that visits real pages and a Vitest driver that pushes routes into Vue Router and renders the app in Node DOM. Demo runs 1540 tests in about 15 seconds under Vitest while Cypress runs much slower, showing the bridge works and preserves fast feedback and browser confidence.

AI-written summary · about

  1. 0:00Introduction to testing
  2. 1:57Test framework features
  3. 4:41End-to-end testing with Cypress
  4. 9:39The problem of slow tests
  5. 11:51Component testing with Vitest
  6. 14:31Risks of component testing
  7. 18:19Balancing speed and confidence
  8. 20:24Running the same tests twice
  9. 24:17Building a testing bridge
  10. 30:57Conclusion
~/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.