jest try catch in funtion being testeeeed code example
Example: jest test try catch
expect(() => {
const model = new Sample(resolvedSample)
}).toThrow(TypeError);
expect(() => {
const model = new Sample(resolvedSample)
}).toThrow(TypeError);