Quick Tests with Vitest

Lessons

1. Intro to Vitest

2:11

2. Writing your first test

5:42

3. Testing our components

10:11

4. Snapshots

3:34

5. Testing API Calls (mocking)

8:09

6. Testing a Page (E2E Testing)

10:45

7. Vitest UI, Coverage & Jest Migration

5:01

Testing API Calls (mocking)

In this lesson, we will be learning how to mock REST API calls. Mocking is a technique used in software testing to simulate the behavior of objects or systems that the software being tested depends on. This is done to isolate the software being tested from the variables outside of its control, such as network connections or external services.

Mocking is important in testing because it allows d