Using Jest to test for errors (JS/TS)

Опубликовано: 13 Май 2026
на канале: Concise Developer
1,540
25

Using Jest to test for errors (JS/TS)
Full course: https://www.udemy.com/course/unit-tes...

0:00 intro
0:46 Throw an error in the code
1:52 Method 1: expected error function wrapper
3:25 Method 2: expected error arrow function
4:17 Method 3: try/catch block
6:52 jest fail
7:28 jest fail is not working
8:22 using the done callback