Skip to content

How to mock config method of redis client ? #63

@sebysr

Description

@sebysr

Hi all,
as in my title question, I'm not able to mock the client.config function.
With jest, I face the error:TypeError: client_events.config is not a function

I, obviously, use redis-mock, with the following line:
jest.mock('redis', () => jest.requireActual('redis-mock'))

Any solutions?
Regards.

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