Skip to content

Mock redlock to write unit testing #54

Closed

Description

@SJ-SivaSubrahmaniam

Hi,

I need to mock redlock to write unit testcases. npm redis-mock is not working for me. any suggestions?

Activity

  1. mike-marcacci commented on Jun 11, 2019

    @mike-marcacci
    Owner

    Hi @SJ-SivaSubrahmaniam,

    I would honestly just spin up a real redis server as part of your test – they are incredibly lightweight, are trivial to add using containerized workflows or are already included in most CI environments that don't use containers, and help make sure you're getting production-like results from your test.

  2. mike-marcacci commented on Jun 13, 2019

    @mike-marcacci
    Owner

    Closing for now. Let me know if this didn't work for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions