In a world with tight deadliness and accelerating requirements, creating automated tests for our applications becomes more important than ever. An important factor to consider, which most developers overlook, is the fact that testing is a skill, and just because you may be comfortable coding up solutions, it doesn't automatically mean that you can write good unit tests. As you get more experience in this area, you'll find yourself writing tests more often and wonder what you ever did without them!
By the end of this chapter, we will cover the following:
- Learning about why you should consider using automated testing tools and techniques
- Writing your first unit test for Vue components
- Writing tests that mock out particular functions
- Writing tests that are dependent on Vue.js events
- Using Wallaby.js to see the results of our tests in real time...