redis-fake
v2.0.0
Published
A fake (test double fake) redis client
Downloads
5
Readme
Introduction
An ultra lightweight test fake implementation of the redis client returned from the fantastic redis package.
What's a test fake? Check out this short blog.
Usage
Install the module and save as a dev dependency
npm install redis-fake --save-dev
Import or require into your test code
import redisClientFakeFactory from 'redis-fake';
const redisClientFake = redisClientFakeFactory();
// now use the fake anywhere you would have used a redis client
You can also take a look at the unit tests for more examples of usage.
Redis Functionality Currently Faked
The following functionality has been faked, admittedly there isn't much yet. Pretty much just enough to support my own testing so far. I will continue to build out more support as I needed, feel free to contribute.