|
|
|
|
|
by TheAceOfHearts
3827 days ago
|
|
There's also stuff like rewire [0], which lets you change required values inside modules. Although every time I've tried it, I found it created more problems than it was solving. [0] https://www.npmjs.com/package/rewire |
|
We use it to stub out imports in our unit tests and find it very easy.