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

Intro to Vitest

In this course, we will explore Vitest, a modern unit test framework powered by Vite, with features including a built-in test runner, snapshots, code coverage, and instant watch mode. We will learn how to set up and test components, mock API calls, and transition from Jest to Vitest. Vitest removes the extra configuration needed to write unit tests, making it faster and leaner for modern web projects.