JavaScript Jabber

Modern JavaScript Testing: Integration, Contract Testing & AI Tools - JSJ 692

10 snips
Sep 29, 2025
Yoni Goldberg, a testing consultant who has enhanced workflows for over 40 organizations, joins to discuss the latest in JavaScript testing. He emphasizes the shift toward browser-based and component testing, driven by tools like Playwright and Storybook. Yoni addresses the pros and cons of mocking versus real backends, advocates for prioritizing user journeys in testing, and highlights the growing importance of contract testing by 2025. The conversation also touches on how AI can assist but requires human oversight.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

AI Can Auto-Fix Tests—But Review Changes

  • Dan warned that AI fixing tests can obscure whether code or tests got changed incorrectly.
  • Yoni insisted humans should review any AI changes to tests to prevent silent regressions.
INSIGHT

Browser-Based Tests Replace Node-Only Assumptions

  • Front-end testing is shifting from Node-only unit tests to running tests in real browsers for more production-like confidence.
  • New tools make visual/browser tests nearly as fast as unit tests, reducing the tradeoff between fidelity and speed.
ADVICE

Choose Playwright For Proven Stability

  • Prefer Playwright for a conservative, proven end-to-end testing foundation that supports multiple browsers and robust waiting/retry behaviors.
  • Use Playwright when you want reliability and fewer experimental risks compared with newer tooling.
Get the Snipd Podcast app to discover more snips from this episode
Get the app