Testing Vue Apps
summary
A concrete testing plan emerges: mount a modal with vue-test-utils, write fast focused unit tests driven by a component contract, run a few slow browser end-to-end checks, and add Jest snapshot tests to guard styling. Claims include unit tests that run in seconds, E2E taking minutes, and test suites that cut production bugs by “20 to 80%.” Demos show a modal component, tests that call onClose, snapshots that fail on removed classes, and quick updates.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:33A web app
- 1:44Why test?
- 3:10Downsides
- 4:06Testing Pyramid
- 4:45E2E Tests
- 6:28Unit Tests
- 10:32Component contract
- 14:55Snapshot tests
- 16:23Demo
- 20:42Learn more
related talks
26mUnit testing Vue components Why test, what to test, and how to test Vue components
28mBuilding Test Strategy for Vue.js application
31mNext Level Jest Testing
24mWriting Good Tests for Vue Applications
42mStress-free Testing for Vue
30mTips, Tricks, and Best Practices
23mSeven ways to make your Vue component tests better
39m7 ways to make your Vue unit tests better
