redis-mock
JSON →Redis client mock object for unit testing. Current stable version is 0.56.3. It provides an in-memory mock of node_redis, allowing developers to test Redis-dependent code without an actual Redis server. Actively maintained but only 46% mock coverage (222/482 commands). Key differentiators: designed as a drop-in replacement for node_redis, supports common operations like strings, hashes, lists, sets, sorted sets, pub/sub, and transactions. However, it lacks complete command coverage and may not support all edge cases.
Resources
packageredis-mock ↗