Rapid Testing with Vitest: Master Unit Testing & Mocking
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

Expect for Errors In Tests

It's important to test that good input produces the correct results. It's also important, however to test that bad input throws helpful errors. In this lesson, learn how to test the failing state of the function implementation.