Jump to ratings and reviews
Rate this book

Testing Vue.js Applications

Rate 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


Introduction to testing Vue applications
Creating your first test
Testing rendered component output
Testing component methods
Testing events
Understanding Vuex
Testing Vuex
Organizing tests with factory functions
Understanding Vue Router
Testing Vue Router
Testing mixins and filters
Writing snapshot tests
Testing server-side rendering
Writing end-to-end tests
APPENDIXESA - Setting up your environment
B - Running the production build
C - Exercise answers

272 pages, Kindle Edition

Published December 7, 2018

5 people are currently reading
38 people want to read

About the author

Edd Yerburgh

2 books

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
9 (29%)
4 stars
17 (54%)
3 stars
2 (6%)
2 stars
3 (9%)
1 star
0 (0%)
Displaying 1 - 4 of 4 reviews
Profile Image for Jarkko Laine.
756 reviews27 followers
September 10, 2019
Very good, approachable but thorough look into testing (unit testing, snapshot testing, and end-to-end testing) Vue applications. And it’s written by the author of Vue-test-utils.
Profile Image for Joel Walkley.
18 reviews1 follower
January 31, 2023
It’s definitely dated since it’s focused on Vue2, but there are so few books on testing that it is still worth picking up. Lots of solid tips about developing a test strategy.
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.