-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Redis.Cluster can't mocked by Jest #1308
Comments
Hi @icebob, what was the ioredis version in the first screenshot? |
v4.24.2, the previous version. |
In the meantime, I'm trying debugging the issue and I think the problem comes from this changes: bf3fe29#diff-d5a4b3a0309f2337144861084c1014523cced561eb722cb9684c63f5e41e0567 |
🎉 This issue has been resolved in version 4.24.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
It was quick, thanks @luin, I really appreciate it. Now it works fine. |
## [4.24.4](redis/ioredis@v4.24.3...v4.24.4) (2021-03-24) ### Bug Fixes * minor compatibility issues caused by TypeScript upgrade ([#1309](redis/ioredis#1309)) ([c96139a](redis/ioredis@c96139a)), closes [#1308](redis/ioredis#1308)
Hello,
I struggle with an issue in my unit tests (where Jest mock the ioredis classes) with the latest v4.24.3 version.
In the previous versions the following unit tests pass:
Result
But with v4.24.3 I've got errors for the same tests:
Do you have any idea what is the problem and how can I fix it? Thanks in advance.
The text was updated successfully, but these errors were encountered: