Testing Vue.js Applications
eBook - ePub

Testing Vue.js Applications

  1. 272 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Testing Vue.js Applications

About this book

Summary

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.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

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.

Table of Contents

  1. Introduction to testing Vue applications
  2. Creating your first test
  3. Testing rendered component output
  4. Testing component methods
  5. Testing events
  6. Understanding Vuex
  7. Testing Vuex
  8. Organizing tests with factory functions
  9. Understanding Vue Router
  10. Testing Vue Router
  11. Testing mixins and filters
  12. Writing snapshot tests
  13. Testing server-side rendering
  14. Writing end-to-end tests
    APPENDIXES
  • A - Setting up your environment
  • B - Running the production build
  • C - Exercise answers

Trusted by 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Table of contents

  1. Copyright
  2. Brief Table of Contents
  3. Table of Contents
  4. The frontend testing pyramid
  5. Preface
  6. Acknowledgments
  7. About this book
  8. About the author
  9. About the cover illustration
  10. Chapter 1. Introduction to testing Vue applications
  11. Chapter 2. Creating your first test
  12. Chapter 3. Testing rendered component output
  13. Chapter 4. Testing component methods
  14. Chapter 5. Testing events
  15. Chapter 6. Understanding Vuex
  16. Chapter 7. Testing Vuex
  17. Chapter 8. Organizing tests with factory functions
  18. Chapter 9. Understanding Vue Router
  19. Chapter 10. Testing Vue Router
  20. Chapter 11. Testing mixins and filters
  21. Chapter 12. Writing snapshot tests
  22. Chapter 13. Testing server-side rendering
  23. Chapter 14. Writing end-to-end tests
  24. Appendix A. Setting up your environment
  25. Appendix B. Running the production build
  26. Appendix C. Exercise answers
  27. Index
  28. List of Figures
  29. List of Tables
  30. List of Listings

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Testing Vue.js Applications by Edd Yerburgh in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in HTML. We have over one million books available in our catalogue for you to explore.