Unit Testing (with Vitest) Tutorial
In this course, you'll learn how to write simple, practical unit tests with Vitest to make your code more reliable. We'll start with the basics - like how to setup Vitest and make a simple test by writing assertions, then move into things like mocks, spies and async tests. The lessons are focused and easy to follow, so the whole process feels approachable even if you’ve never tested a line of code before.
By the end, you’ll have a solid grounding in unit tests, and a much better sense of how to keep your code bug-free.
In This Course...
Vitest Unit Testing Tutorial
Available in
days
days
after you enroll
- 1 - Introduction & Setup (10:10)
- 2 - Writing Your First Tests (14:44)
- 3 - Vitest Matchers (15:15)
- 4 - Writing Better Tests (21:08)
- 5 - Using it.each (4:58)
- 6 - Vitest UI & VSC Extension (8:29)
- 7 - Test Driven Development (24:14)
- 8 - Testing Async Functions (12:07)
- 9 - Asymmetric Matchers (5:17)
- 10 - Testing Challenge (11:17)
- 11 - Mock Functions (12:10)
- 12 - Creating Spies (10:36)
- 13 - Setup & Teardown (3:22)
Sign up for Net Ninja Pro
Most popular
Monthly Membership
$9/mo
- Instant access to all courses
- Early access to new courses
- Access to premium & Udemy courses
- Cancel at any time
Yearly Membership
$79/yr
- Instant access to all courses
- Early access to new courses
- Access to premium & Udemy courses
- Save over 25%!
Get your first month half price when you use the code NINJAFLEDGLING. (monthly plan only).