Book description
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
Publisher resources
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- The frontend testing pyramid
- Preface
- Acknowledgments
- About this book
- About the author
- About the cover illustration
- Chapter 1. Introduction to testing Vue applications
- Chapter 2. Creating your first test
- Chapter 3. Testing rendered component output
- Chapter 4. Testing component methods
- Chapter 5. Testing events
- Chapter 6. Understanding Vuex
- Chapter 7. Testing Vuex
- Chapter 8. Organizing tests with factory functions
- Chapter 9. Understanding Vue Router
- Chapter 10. Testing Vue Router
- Chapter 11. Testing mixins and filters
- Chapter 12. Writing snapshot tests
- Chapter 13. Testing server-side rendering
- Chapter 14. Writing end-to-end tests
- Appendix A. Setting up your environment
- Appendix B. Running the production build
- Appendix C. Exercise answers
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Testing Vue.js Applications
- Author(s):
- Release date: January 2019
- Publisher(s): Manning Publications
- ISBN: 9781617295249
You might also like
book
Building Vue.js Applications with GraphQL
Take your Vue.js knowledge to the next level by understanding full-stack development concepts and exploring modern …
book
Testing JavaScript Applications
Automated testing will help you write high-quality software in less time, with more confidence, fewer bugs, …
book
Vue.js: Up and Running
Get a brisk introduction to building fast, interactive single-page web applications with Vue.js, the popular JavaScript …
book
Building Progressive Web Applications with Vue.js: Reliable, Fast, and Engaging Apps with Vue.js
Obtain all the necessary tools for developing a progressive web application (PWA) with Vue.js, a modern …