stipsan / ioredis-mock

Emulates ioredis by performing all operations in-memory.
MIT License
337 stars 124 forks source link

Question regarding redis #1096

Open crispinkoech opened 2 years ago

crispinkoech commented 2 years ago

Had a question; in order to use this mock do I need to have a local instance running? Tried using just the lib itself but I kept getting a ECONNREFUSED error 🙁

crispinkoech commented 2 years ago

Just to provide some context, I wanted to use this to mock some tests in bullmq.

boredland commented 2 years ago

same here in a very similar setup. one finding: the mock stops mocking after updating ioreds 4.28.1 -> 4.28.2

boredland commented 2 years ago

perhaps it is due to bullmq depending on a different version? https://github.com/taskforcesh/bullmq/blob/a008c2be6bc8fe73360ac97a6deabced04382ab4/package.json#L47

crispinkoech commented 2 years ago

I think you need to point it to a redis binary of some sort iirc.

crispinkoech commented 2 years ago

Unless that was an entirely different library I was exploring, can't remember :)