Back to Sinon

spyCall.exception

docs/concepts/spy-call/api/exception.md

22.1.0269 B
Original Source
<!-- TODO: add spyCall.error and deprecate this one -->

spyCall.exception

When a fake throws an error during a call, this property will contain a reference to it, otherwise it will be undefined.

<<< ../../../.vitepress/tests/docs/spy-call/api/exception.test.js