Overview
Testing Vue.js Applications is a comprehensive guide to testing Vue components, methods, events, and output. Author Edd Yerburgh, creator of the Vue testing utility, explains the best testing practices in Vue along with an evergreen methodology that applies to any web dev process.
About the Technology
Web developers who use the Vue framework love its reliability, speed, small footprint, and versatility. Vue’s component-based approach and use of DOM methods require you to adapt your app-testing practices. Learning Vue-specific testing tools and strategies will ensure your apps run like they should.
About the Book
With Testing Vue.js Applications, you’ll discover effective testing methods for Vue applications. You’ll enjoy author Edd Yerburgh’s engaging style and fun real-world examples as you learn to use the Jest framework to run tests for a Hacker News application built with Vue, Vuex, and Vue Router. This comprehensive guide teaches the best testing practices in Vue along with an evergreen methodology that applies to any web dev process.
What's Inside
- Unit tests, snapshot tests, and end-to-end tests
- Writing unit tests for Vue components
- Writing tests for Vue mixins, Vuex, and Vue Router
- Advanced testing techniques, like mocking
About the Reader
Written for Vue developers at any level.
About the Author
Edd Yerburgh is a JavaScript developer and Vue core team member. He’s the main author of the Vue Test Utils library and is passionate about open source tooling for testing component-based applications.
We interviewed Edd as a part of our Six Questions series. Check it out here.
Quotes
A comprehensive guide to Vue.js testing by the author of the official testing utility.
- Evan You, creator of Vue.js
Totally on point—your one-stop shop for testing Vue.js applications. Best of breed for the latest tech.
- Clive Harber, Distorted Thinking
Edd’s book on testing Vue is the richest guide I have found so far. I will be pointing others to it as the way to learn testing that works for Vue.
- John Farrar, Active On-Demand
Straightforward and easy to read. The book instructs, demonstrates, and provides the techniques necessary to successfully test all levels of a Vue.js application.
- Jim Schmehil, National Heritage Academies
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access