~/talk

Fullstack testing

Talkat Svelte Summit Spring 2024 · on Saturday, 2024-04-27· [testing]
slides:none on file

Argues that modern meta-framework apps need fullstack tests that cover unit, component and E2E layers, and shows a working setup: unit tests with Vest, component tests with Svelte Testing Library and HappyDOM, E2E with Playwright and MSW where MSW handlers run on both client and server. Demonstrates database-backed E2E using Drizzle + SQLite with migrations and a reset fixture so each Playwright test starts with a fresh schema. Offers concrete vite config changes, test setup files and fixture code that actually run.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:06Analyzing common bugs
  3. 8:50Testing philosophy
  4. 10:21Modern testing landscape
  5. 12:27Setting up tests
  6. 13:23Unit and component testing
  7. 17:32End-to-end testing with MSW
  8. 21:45Database integration testing
~/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.