Open cspotcode opened 8 years ago
can we get some movement on this? useCleanCache causes the module to not self-register. This can be fixed with TooTallNate's https://github.com/TooTallNate/node-bindings library.
@cspotcode Thank you so much for youre fork, I had a problem TypeError: self.dialect.Query is not a constructor
with sequelize.js when I used mockery.js for any fing. Your fork fixed thaht, I am really happy about this (I spent 6 hours for debugging and founding solution).
I forked mockery to cspotcode/mockery-next. (I know, very creative naming!) I liked mockery's API and needed it for some tests at work, but also wanted support for resolving relative paths. I've added that feature and fixed a few other things. It's on npm.
I'd like to merge back into mockery if possible; no sense having extra forks floating around. However, I've made some breaking changes. Any chance for a 2.0 release and/or can I become a contributor to mockery?
Breaking changes
Enhancements
null
substitutions and mockery will pretend the module doesn't exist. For example:mockery.registerSubstitute('some-optional-module', null);
Bugfixes:
require('mockery')
whileuseCleanCache
is enabled.