Chapter 11. Testing mixins and filters
This chapter covers
- Using Vue mixins and filters in a project
- Writing unit tests for Vue mixins and filters
- Writing unit tests for components that use Vue mixins and filters
Mixins and filters are great ways to add reusable functionality to Vue components. In this chapter, you’ll learn what mixins and filters are and how to write unit tests for them.
At this point in the book, the Hacker News application is looking good. You have Vue, Vue Router, and Vuex—the holy trinity of Vue applications—working together to create a dynamic Hacker News feed. In this chapter, you’ll add some finishing touches to improve the UI.
The first section is about mixins. You’ll learn what mixins are and how to test them by ...
Get Testing Vue.js Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.