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

This lesson is for members. Join us?

Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.

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.