Back to Sinon

stub.callThroughWithNew

docs/concepts/stubs/api/call-through-with-new.md

22.1.0242 B
Original Source

stub.callThroughWithNew()

Causes the original method wrapped into the stub to be called using the new operator, when none of the conditional stubs are matched.

<<< ../../../.vitepress/tests/docs/stubs/api/call-through-with-new.test.js