Open greenkeeper[bot] opened 7 years ago
After pinning to 3.1.1 your tests are still failing. The reported issue might not affect your project. These imprecisions are caused by inconsistent test results.
Your tests are still failing with this version. Compare the changes π¨
Your tests are still failing with this version. Compare the changes π¨
redis
.scan(0, 'MATCH', 'foo*', 'COUNT', 1)
.then(result => console.log(result))
redis
.lrange('myKey', 0, 2)
.then(result => console.log(result))
Your tests are still failing with this version. Compare the changes π¨
hmset
This is a stopgap solution until real argument and reply transformers is implemented and fully compatible with ioredis
redis.zadd('myzset', '1', 'one', '1', 'uno', '2', 'two', '3', 'three') // returns `4` as 4 items got added
redis.zrange('myzset', 0, -1) // ['one', 'uno', 'two', 'three']
redis.zrevrange('myzset', 0, -1) // ['three', 'two', 'uno', 'one']
redis.zremrangebyrank('myzset', 0, 2) // returns '3' as thatβs how many items got deleted
redis.zrange('myzset', 0, -1) // ['three']
Your tests are still failing with this version. Compare the changes π¨
Your tests are still failing with this version. Compare the changes π¨
Any transformer you use on arguments and replies in ioredis
will work in ioredis-mock
Since we're now able to load the built in transformers in ioredis
we could finally get rid of old code related to the the hgetall
and hmset
commands.
The following only apply if you use
ioredis-mock
without installingioredis
If this is your use case you'll need to install ioredis
as well or ioredis-mock
will not work as we're using ioredis
internals to stay compatible. Using ioredis-mock
without installing ioredis
have been possible up to now but's newer actually been officially supported. That's why ioredis
have always been specified as a peerDependency
.
Your tests are still failing with this version. Compare the changes π¨
Your tests are still failing with this version. Compare the changes π¨
Your tests are still failing with this version. Compare the changes π¨
const RedisMock = require('ioredis-mock');
const redis = new RedisMock();
redis.subscribe('news', 'music').then(result => console.log(result)) // logs '2'
Your tests are still failing with this version. Compare the changes π¨
const data = {
foo: new Map([
['first', { score: 1, value: 'first' }],
['second', { score: 2, value: 'second' }],
['third', { score: 3, value: 'third' }],
['fourth', { score: 4, value: 'fourth' }],
['fifth', { score: 5, value: 'fifth' }],
]),
};
const RedisMock = require('ioredis-mock');
const redis = new MockRedis({ data });
redis
.zrangebyscore('foo', 1, 3)
.then(result => console.log(result)) // logs ['first', 'second', 'third']
In ioredis
this is the equivalent to calling redis.disconnect
. ioredis-mock
does not implement connection simulation functionality yet so for now it's just a stub.
redis.quit() // OK
Our previous release added subscribe
and joining the fray you can now pretend to be unsubscribing (just like the newsletters in your inbox!)
redis.unsubscribe() // OK
Your tests are still failing with this version. Compare the changes π¨
Your tests are still failing with this version. Compare the changes π¨
Your tests are still failing with this version. Compare the changes π¨
Your tests are still failing with this version. Compare the changes π¨
Version 3.1.2 of ioredis-mock was just published.
This version is covered by your current version range and after updating it in your project the build failed.
ioredis-mock is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
Status Details
- β **continuous-integration/travis-ci/push** The Travis CI build failed [Details](https://travis-ci.org/fortis/koa-boost/builds/299899547?utm_source=github_status&utm_medium=notification)Release Notes
v3.1.2Commits
The new version differs by 1 commits.
b392026
Fix: Fixed hexists edge cases (#331)
See the full diff
FAQ and help
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those donβt help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper Bot :palm_tree: