Unit and integration testing with Vitest

Unit and integration testing with Vitest

Learn to test your codebase FAST with Vitest - a fast test runner built on ESBuild

4.8
(5 ratings)
155 enrolled
Excellent Rating
Course Instructor: Mehul Mohan

Course Outcomes

  • Learn basics of unit testing
  • Learn how to work with integration testing
  • Write solid unit tests using Vitest
  • Learn about code coverage and how to test edge cases
  • Mocking functions, and testing critical parts of code

Course Structure

28 lectures55m total duration

  Introduction to Vitest 
0min
  Why you should test your code? 
1min
  How to get the most out of this course? 
1min
  Vitest interactive lab 
10min
  Testing Structure Explained 
1min
  Quiz 
1min
  Vitest configuration - Introduction 
3min

About This Course

Code testing is important to ship code to production confidently. This course is a getting started to expert guide on using Vitest for code testing your frontend and backend codebases.

Vitest is a new test runner that comes with support for assertion libraries: Chai and Jest. Vitest is a fast runner with built in support for JS, TS, JSX and more. It is built on top of Vite.

Vite's out-of-the-box support for common web patterns, features like glob imports and SSR primitives, and its many plugins and integrations are fostering a vibrant ecosystem. Its dev and build story are key to its success.

Used by learners at

Microsoft
Amazon
Google

This course is interactive

Interactive courses include hands-on coding exercises to practice as you learn. You practice exercises in a VS Code like IDE without any installation/setup.

Screenshot of codedamn IDE

Student Feedback

4.8
Course Rating

80%

20%

0%

0%

0%

Course Instructor

Mehul Mohan
Building coding courses on codedamn
Mehul Mohan
4.6 Instructor rating
23.3k Ratings
228.2k Students
47 Courses

Me alongside a team of developers, creators, designers are building the best interactive programming courses here.View profile

Upgrade to a Pro account and unlock more courses for accelerated learning. Instant feedback, interactive learning and more.

Free

  • 100+ coding courses
  • Certificate of completion
  • Hands-on practice
  • 24x7 doubt solving with AI
  • 100+ projects to practice
  • In-depth project feedback
  • AWS cloud sandboxes

Pro

  • 100+ coding courses
  • Certificate of completion
  • Hands-on practice
  • 24x7 doubt solving with AI
  • 100+ projects to practice
  • In-depth project feedback
  • AWS cloud sandboxes
Upgrade To Pro