Jest ioredis mock – Bind mock to module
In typescript, i have the following instantion of IoRedis. import IoRedis from "ioredis"; const redis = new IoRedis({ ... }); While mocking in the test classes the following way. Decided to go with ioredis-mock, to solve this problem. var IoRedis…