~/talk

Don't Mock! How to Use Contracts to Write Better Tests for Nuxt Applications

Talkat VueConf Toronto 2024 · 2024-11-18..11-20· [testing]
slides:none on file

Mocking fails once a BFF or Next server routes remove observable HTTP calls, so tests that intercept browser traffic miss server‑to‑server behavior and mock data drifts from real APIs. Uses an OpenAPI spec published to a contract store, runs a Specmatic stop server during tests, and drives the app with Playwright and Next; contract validation rejects breaking API changes so tests fail when a consumer example and the service spec diverge. Demonstrated end‑to‑end testing that prevents silent mock breakage using contract testing and an OpenAPI spec.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:46Problem with mocking microservices
  3. 5:22Monolithic vs microservices testing
  4. 9:39BFF layer complicates testing
  5. 14:02Why mocking fails in microservices
  6. 15:51Contract testing as solution
  7. 19:22OpenAPI specifications explained
  8. 22:16Contract testing demo setup
  9. 26:09End-to-end testing with contracts
  10. 29:01Solving testing problems with contracts
  11. 29:43Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.