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

test: Initial attempts at database testing #2

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

jamesaspence
Copy link
Owner

Attempted to add database testing.

  • The docker compose now has a test database with credentials defined in the .env file
  • A new .env.testing file can be specified with test env values.
  • Wrote a few database utils, including a utility function that allows spinning up and tearing down a database in tests. It did not work super well so it is not in use currently.
  • Attempted to write multiple database tests, but I didn't get very far. Prisma's docs do not recommend spinning up test databases this way, so I'm going to revisit another time, or when prisma revisits the issue.

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

Successfully merging this pull request may close these issues.

1 participant