A unit test walks into a bar
summary
Claims that unit tests cut manual testing, lower cost of change, and act as living docs; demonstrates JavaScript examples using Jasmine and DOM helpers like enzyme or vue-test-utils; shows concrete techniques: dependency injection with a fake fetch that returns a resolved promise, and stub/mock/spy patterns to force paths and assert calls; surprises include playful counts like 2.5 billion beers used to illustrate edge, happy and sad paths; recommends gating merges on green tests and fixing flaky tests.
AI-written summary · about
chapters (5)
- 0:00Intro
- 1:05Benefits of automated testing
- 2:58Types of automated testing
- 10:15What not to test
- 14:50Closing tips
related talks
39mTesting, Testing, 1, 2, NaN
29mFall in LOVE with Unit Testing
01h 02mWriting better tests for your JavaScript app
45mWriting Tests That Don't Suck: TDD in JavaScript
28mBuilding Test Strategy for Vue.js application
41mTesting that the code does what the code does
29mTesting Is All About Principles
23mIt's a Testing Trap
