~/talk

Testable Nuxt

Talkat Nuxt Nation 2023 · 2023-10-18..10-19· [testing, frontend-architecture]
slides:none on file

A Nuxt pizza store demo shows which tests matter: unit tests for pure functions, split composables to avoid mocking useFetch, and shallow mounting for component logic. Use Vitest config separate with ntest utils and jsdom, mock $fetch when needed, and prefer Playwright for E2E interaction using page.locator and data-test-id selectors. Also run server page checks via ntest fetch to assert rendered HTML and aim for 80% coverage as a practical target.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50I hate test
  3. 2:48Planning
  4. 5:59Unit Testing
  5. 14:06Component Testing
  6. 16:48Interaction Test
  7. 18:45Playground Test
  8. 20:49Other Tools
  9. 22:14QA
~/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.