Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Testing Vue.js Components

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

Exercise 1: Rendering a List of Users

This lesson is a fun exercise! We recommend that you download the starting point before you watch the video to get started. Then after watching the lesson, try to solve the following exercises to test your testing knowledge:

  • Add at least two more names to the users array, and test that they are all rendered in the DOM
  • Add one of the names to the filter, and expect that only this name is rendered in the DOM

We encourage you to look through the previous videos or the Jest and Vue Test Utils documentation before you peak at the solution

Good luck! :)