jhnns / rewire

Easy monkey-patching for node.js unit tests
MIT License
3.08k stars 128 forks source link

[Feature request] built in function spying #140

Open edwmurph opened 6 years ago

edwmurph commented 6 years ago

Any thoughts on implementing function spying? Specifically it would be nice if I could determine things about injected mocks like:

Currently I'm getting around this by using sinon with rewire but it would be nice if rewire was an all in one solution.

spik3r commented 5 years ago

+1 I agree this would make writing tests much simpler & cleaner... I also don't like needing multiple frameworks.