You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
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
Properly resolves relative module paths. Breaking change. Requires all mocked / substituted modules to exist. Otherwise, path resolution fails at registration-time. (Based on @Kubas's PR)
Enhancements
Can register null substitutions and mockery will pretend the module doesn't exist. For example: mockery.registerSubstitute('some-optional-module', null);
Bugfixes:
Doesn't break when you require('mockery') while useCleanCache is enabled.
Substitute modules can have falsey exports.
The text was updated successfully, but these errors were encountered:
@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).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.The text was updated successfully, but these errors were encountered: