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

Allow unit tests to run without database connection #329

Open
2 tasks
jackbravo opened this issue Apr 10, 2024 · 0 comments
Open
2 tasks

Allow unit tests to run without database connection #329

jackbravo opened this issue Apr 10, 2024 · 0 comments

Comments

@jackbravo
Copy link
Collaborator

jackbravo commented Apr 10, 2024

Today if you run npm run test you need to have a valid database connection. To verify this task you would need to turn off the database and run tests, and all tests should pass.

  • Modify current existing tests to either mock anything that requires the database or that could be deleted. Or to not fail when the DB is turned off
  • Modify our .github/workflow/deploy.yml file to not require a database connection when running vitest
@jackbravo jackbravo converted this from a draft issue Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔖 To Do
Development

No branches or pull requests

1 participant