
Episode 84
84: Edd Yerburgh - Testing Vue.js Components
In this episode, Adam talks to Edd Yerburgh, Vue.js core team member and author of the vue-test-utils library, about testing Vue components.
March 14, 201844m 29s
Audio is streamed directly from the publisher (media.transistor.fm) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.
Show Notes
Topics include:
- Challenges with testing Vue components prior to vue-test-utils
- How vue-test-utils works and what it looks like to test a component
- Choosing a test runner
- Common mistakes people make when testing their components
- Mocking and stubbing external dependencies
- Combining unit testing with snapshot testing
Sponsors:
- Codeship, check out how they performed in Forrester's latest Continuous Integration Tools report
- Rollbar, sign up at https://rollbar.com/fullstackradio to try their Bootstrap Plan free for 90 days
Links:
- vue-test-utils on GitHub
- vue-test-utils Documentation
- "Testing Vue.js Applications", Edd's book
- Enzyme testing utility for React
- jsdom
- Jest, Edd's recommended test runner
- mocha-webpack
- Mocking in Jest
- Snapshot testing in Jest
- Async Vue components
Topics
technologysoftwarewebdevelopmentproductstartup