title: Throw new Error with Object in TypeScript Jest
body: <p>How do I throw a new Error with Object containing Error details in typeScript?</p>
  <p>I am using jest for testing typescript code and I want to throw new Error as shown below:</p>
  <pre><code>mock.spyOn(AppUtils,'util_plane').mockImplementation(() =&gt; {
          throw new Error(&quot;Error Message&quot;,{status:403})
  })
  
  </code></pre>
  <p>when I do this, the compiler complains saying:</p>
  <p><code>Expected 0-1 arguments, but got 2.ts(2554)</code></p>