Chapter 5. Testing events
This chapter covers
- Testing native DOM events
- Testing custom Vue events
- Testing input elements
If money makes the world go around, then events make web apps go around. Without events, websites would be static HTML pages; with events, websites can become powerful applications that respond to user interactions.
In Vue applications, you will encounter two types of events: native DOM events and Vue custom events. In this chapter you’ll learn about both types of events and how to test them.
So far in this book, you’ve written unit tests for components in a Hacker News application. The Hacker News application is a great example of a real-world app. But there’s one problem—it doesn’t use any events!
Events are an important ...
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.