I'm trying to use sinon with mockery[1] (to substitute actual node modules with my mocks) and I'm experiencing some weirdness.
Most of my mocks (there is one that seems to work) say they are not called (called is false, callCount 0), but I know those mocked functions are being called because I pretty much removed all the code except the function calls to force it to be called. Mockery doesn't seem to be reporting any errors and the mocks seem to be registering properly, if I print the mocked function on the code I'm trying to test, the object that gets printed is a sinon stub, so all I can think of right now is that sinon might be malfunctioning with mockery.
I'm wondering if someone has used sinon with mockery before and experienced this sort of issues. Did someone get sinon working with mockery?
Thanks!
--
Unai Orbe