Hacker News new | ask | show | jobs
by madeofpalk 3822 days ago
Proxyquire - https://github.com/thlorenz/proxyquire - is a nicer way to solve many of the problems that people tend to use rewire for.

We use it to stub out imports in our unit tests and find it very easy.