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 Emitted Events

In the previous lesson, we looked at testing a component that took in some props and generated a number based upon a button click. This required us to simulate (trigger) the button click within our test. That “click” falls under the category of a native DOM event, but often in Vue