course

Testing Vue

Want to get started with unit testing in Vue? Here's pretty much everything you need. We'll cover setting up a test runner, using Vue Test Utilities, mocking and stubbing common dependencies like Vue Router and Axios, and testing Vuex both within components and in isolation. Let's get testing.

Watch this course

1. Introduction

01:14

2. Setting up a project for testing

19:10

3. Structuring and writing tests

05:29

4. I can see some text

02:47

5. A class should be visible

05:47
  • Pro

6. Clicking should do something

07:50
  • Pro

7. Slot content should be rendered

07:28
  • Pro

8. An event should be emitted

08:41
  • Pro

9. A router-link should be rendered

10:10
  • Pro

10. A quicker way to mock router-link

04:52
  • Pro
  • 2 hours 41 mins
  • Released 5 months ago