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

Writing your first test

In this lesson, we’re going to write our first unit test using Vitest.

At the end of this lesson, you should know:

  • How to set up and configure Vitest in a Vue app.
  • Standard Vitest methods that exist.
  • How to write and run tests with Vi