Rapid Testing with Vitest - Case study: Write a Deep Merge Function with TDD - 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.