Answers for "how to do try catch in test jest"

CSS
0

jest test try catch

expect(() => {
   const model = new Sample(resolvedSample)
}).toThrow(TypeError);
Posted by: Guest on June-25-2020

Browse Popular Code Answers by Language