Check out example codes for "jest test try catch". It will help you in understanding the concepts better.

Code Example 1

expect(() => {
   const model = new Sample(resolvedSample)
}).toThrow(TypeError);

Learn ReactJs, React Native from akashmittal.com