Tes Jest Coba Tangkap

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