sinonjs/sinon#1265
What: Feature request to automatically call stubbed/spied constructors with new
.
Why: Often asked for. People get confused about Function#constructor and the constructor keyword.
Should either make a small tutorial to document how to "stub" (make a new) constructor
and/or introduce a small Sinon NPM plugin to do so (in the article).
sinonjs/sinon#831 (comment) https://gist.github.com/fatso83/329da40002d45533b1e74db825f2bf54 What: how to use proxyquire to intercept dependencies Why: often asked for
sinonjs/sinon#1832 Why: Often asked for. Needs extra tools (esm).