Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests have a dependency over Redis #96

Open
yuvrajsab opened this issue Aug 28, 2023 · 2 comments
Open

Tests have a dependency over Redis #96

yuvrajsab opened this issue Aug 28, 2023 · 2 comments
Assignees

Comments

@yuvrajsab
Copy link
Member

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]
@GeekGawd
Copy link

I would like to work on this issue.

@yuvrajsab
Copy link
Member Author

Yes, go for it 🚀 @GeekGawd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants