Skip to main content

Testing Vue.js Components

1h 6m 20s
English
Paid

Course description

Learn how to test your Vue.js components with Jest and the official unit testing library for Vue.js - Vue Test Utils In this course, you’ll learn everything you need to know to write proper unit tests for your Vue components.

Read more about the course

By the end of this testing course you will know

  • Which tools are required for an efficient testing workflow
  • How to mount and render your Vue components
  • How to programmatically interact with your components through Vue Test Utils
  • How to test computed properties and watchers
  • How to test Vue.js lifecycle methods
  • How to traverse the DOM and test …
  • How to stub child components
  • How to test that a Vuex Store is injected properly

Watch Online

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 11 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing

Watch Online Testing Vue.js Components

0:00
/
#1: Installing Vue Test Utils

All Course Lessons (11)

#Lesson TitleDurationAccess
1
Installing Vue Test Utils Demo
05:16
2
Mounting Components with Vue Test Utils
07:01
3
The Wrapper Object
04:21
4
Learn How To Test Computed Properties and Watchers
06:48
5
Learn How To Test Vue.js Methods
09:23
6
Learn How to Test Vue.js Lifecycle Methods
07:52
7
Traversing The DOM
04:37
8
How to Stub a Vue.js Child Component
04:25
9
How to test that a Vuex Store is injected into a Vue.js component
05:45
10
Exercise 1: Rendering a List of Users
06:26
11
Exercise 2: Interacting with a Form
04:26

Unlock unlimited learning

Get instant access to all 10 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Comments

0 comments

Want to join the conversation?

Sign in to comment

Similar courses

Mastering Nuxt, 2025 Edition

Mastering Nuxt, 2025 Edition

Sources: masteringnuxt.com, Michael Thiessen
Mastering Nuxt: Full Stack Unleashed - 2025 Edition - is not just a course, but a comprehensive step-by-step guide to modern Nuxt, created with the...
7 hours 36 minutes 9 seconds
Common Vue.js Mistakes and How to Avoid Them

Common Vue.js Mistakes and How to Avoid Them

Sources: vueschool.io
Mistakes are inevitable, but their repetition can be prevented. In this course, we will look at the most common mistakes made by Vue.js developers and find...
1 hour 12 minutes 47 seconds
Vue 3 Composition API 3

Vue 3 Composition API 3

Sources: vueschool.io
Explore Vue 3 Composition API with hands-on learning. From basic concepts to advanced usage, gain a complete understanding of Vue.js component logic and state
1 hour 59 minutes 20 seconds