Skip to content

spy on ioredis #1337

@idaamit

Description

@idaamit

I'm using ioredis-mock in my ts code with jest.
import RedisMock from 'ioredis-mock';

RedisMock.prototype.status = 'ready'
jest.mock('ioredis', () => jest.requireActual('ioredis-mock'));

I need to know how many times the get / set method was called and what were the passed parameters.
How can I do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions