Jest/Vitest Testing Fundamentals Course

Learn the basics of how to test with Jest or Vitest. This course covers the main features for writing assertions, tests, mocks, async testing, and more

This is preparation for learning how to test React frontend applications. In this course we cover the core Jest and Vitest fundamentals that you need to know before you start testing frontend applications.

This includes common ways to write tests in Jest and Vitest, common matchers, working with mocks, async behaviour, and more.

Once you have completed this course, you will be ready for the main content on this site covering React frontend testing.

Note: This entire course is free (does not even require sign up) and it can be useful even if you want to learn Backend/NodeJS testing.

It is compatible with both Jest and Vitest, as they share very similar syntax for most things.

19 lessons
Interactive test runner in browser
Step by step lessons

Course Lessons

19 lessons to learn everything about Jest/Vitest Testing Fundamentals