Unit Testing Vue 2

Lessons

1. What to test

4:58

2. Writing a Unit Test with Jest

9:25

3. Testing Props & User Interaction

7:15

4. Testing Emitted Events

6:56

5. Testing API Calls

9:52

6. Stubbing Child Components

6:01

Testing Props & User Interaction

In the previous lesson, we learned how to write and run our first unit tests. In this lesson, we’ll continue writing simple tests for a component that requires user interaction and takes in some props.


Random Number Component

In lesson 1, we identified