Skip to content

Tests have a dependency over Redis #96

@yuvrajsab

Description

@yuvrajsab

Describe the bug
Our test cases need a Redis module dependency to run, but this should not be the case as test cases should be independent of these types of dependencies. These dependencies should have been mocked.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the root folder of the project.
  2. Run the command yarn test api without running Redis.
  3. See the error:
    image

Expected behavior
Test cases should have passed even if Redis is not connected.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions