-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ioredis plugin breaks ioredis #713
Comments
Thanks! Why is it that tests passed? I copy pasted the return from another plugin I believe |
The tests do not use the plugin loader, so they are independent from this behavior. None of the other plugins have this behavior from a cursory check. |
I think I was inspired by
Anyhow, you think it's possible/worth it to include plugin loader in tests? |
I can't think of an easy way to do that, and I don't want the test to depend on an outside component. In this case it was unfortunate that the module exports prototype happened to have the same type as the module exports. In most cases that won't be true. I'm not sure what would be a good general way to test this. |
Sounds good, thanks. |
At the end of the constructor, the ioredis plugin returns
this._moduleExports.prototype;
. The types don't complain, but the ioredis module is completely broken and unuseable.fix: return
return this._moduleExports;
The text was updated successfully, but these errors were encountered: