Testing Vue / Introduction

0 complete
24 parts
Next →

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

11. I can read $route information

02:58
  • Pro

12. Asynchronous data should be loaded

10:54
  • Pro

13. It cleans up after a component is destroyed

03:03
  • Pro

14. The route should be updated

07:07
  • Pro

15. I can see a component within another component

03:37
  • Pro

16. Check that a method is called

04:34
  • Pro

17. Testing timers

08:58
  • Pro

18. Using and mocking mixins

05:17
  • Pro

19. Vuex: A getter value should be visible

12:17
  • Pro

20. Vuex: An action should be dispatched

09:55
  • Pro

21. Restructuring Vuex for isolated tests

03:47
  • Pro

22. Vuex in isolation: Getters

02:44
  • Pro

23. Vuex in isolation: Mutations

03:16
  • Pro

24. Vuex in isolation: Actions

09:20
  • Pro

Testing Vue

  • 2 hours 41 mins
  • Released 6 months ago

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.