Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

About the Rapid Testing with Vitest course

In this course the creator of Vitest, Anthony Fu, will get you up and running with the fastest testing framework around.

Learn the basics of how to do unit testing, why it's important, and how to be more confident shipping to production. Even if you are brand new to unit testing, don't worry! Anthony will start with the fundamentals and work up to more advanced topics such as mocking and spying.

Learn the benefits of TDD (Test Driven Development) and practice using the approach to build a simple deep merge function. In the process, get familiar with Vitest syntax and best practices. Test both expected functionalities and that unexpected input throws the proper errors.

Finally, experience the blazing fast feedback loop testing with Vitest provides and get hot tips from an avid open source developer who uses Vitest in a variety of real worl projects including: Vite, Slidedev, UnoCSS, and even Vitest is tested with Vitest!

1

Getting Started with Vitest

4 lessons • 11 min
3

Vitest Snaphots

3 lessons • 8 min
4

Mocking & Spying in Vitest

0 lessons • 0 min
icon
Use Vitest to Spy console.log
Coming Soon
icon
Mock fs with Vitest
Coming Soon
5

How to Test a Vue 3 Composable

0 lessons • 0 min
icon
Testing Setup and Writing the Composable
Coming Soon
icon
How to Test Reactive Changes
Coming Soon
6

How to Test a Vue 3 Component

0 lessons • 0 min
icon
Test a Counter Component with Vitest and Vue Test Utils
Coming Soon
icon
Configure the DOM Environment for Vitest
Coming Soon
icon
How to Mount a Component for Testing
Coming Soon
icon
Pass Component Props in Tests
Coming Soon
icon
Use Snapshots with Vue
Coming Soon
icon
Filter Tests
Coming Soon
icon
How to Mock Vue Components
Coming Soon
7

Bonus Material

0 lessons • 0 min
icon
How to Migrate from Jest to Vitest
Coming Soon
icon
Vitest UI
Coming Soon
icon
The Vitest VS Code Extension
Coming Soon
icon
Use Vitest with Nuxt 3
Coming Soon
icon
Aliasing & Plugins
Coming Soon
icon
Course Conclusion
Coming Soon