Testing Edge Cases, Errors and Async Code

Bugs hide at the limits, in the errors and in the code that waits, so this lesson tests all three with Vitest, using toThrow, resolves and rejects, and fake timers that skip ahead in time.

Updated

Cheat sheet: Testing Edge Cases, Errors and Async Code
Category
JavaScript
Level
Freelancer
Tags
Edge Case, Fake Timers, JavaScript, Promise, Test Case, Test Double, unit testing