~/talk

Stop Doing E2E Tests! Write Better Tests with Contract

Talkat Frontend Nation 2025 · 2025-06-03..06-05· [testing, frontend-architecture]
slides:none on file

Claims that end-to-end tests break down in microservices and that mocking gives false confidence; instead use Specmatic to run a stub server from OpenAPI specs and run Playwright tests that hit HTTP stubs. Demo builds a Next.js app plus shopping-list, rating and product services, pushes/pulls contracts to a repo, seeds data, starts Specmatic stubs, and validates contracts; it catches a renamed field and prevents a production break, reducing flakiness and preserving independent deploys.

AI-written summary · about

  1. 0:00Contract testing alternatives
  2. 1:09Why E2E tests fail
  3. 3:36E2E testing problems
  4. 6:06Mocking false confidence
  5. 9:43Mocking SSR limits
  6. 11:51Contract-driven microservices
  7. 13:42Pact vs Specmatic
  8. 16:34From end-to-end to app testing
  9. 18:01Demo: Next.js and microservices
  10. 20:13OpenAPI for contracts
  11. 22:23Specmatic contract tests
  12. 23:26Early contract violations
  13. 24:30Pushing contracts to repo
  14. 25:15Testing with stopped servers
  15. 27:24Playwright with contract data
  16. 28:30Validating consumer contracts
  17. 29:13Breaking change detection
  18. 30:58Contract testing benefits
  19. 31:40Summary
  20. 32:04Q&A
  21. 32:50Q&A: Versioning and breaks
  22. 33:30Q&A: Testing vs versioning
  23. 34:14Q&A: Coverage and pain points
  24. 35:19Q&A: Convincing teams
  25. 36:00Closing remarks
~/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.