Add scripts for test database setup #398
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Based on #350 (comment), the following changes have been made:
setup:test
script to setup the test databasedb:studio:test
script to view the test database using prisma studiodb.server.ts
to prioritize the value ofDATABASE_URL
inprocess.env
over the value insecrets
for development/testing environments. This is required so that the tests run using the test database since we override the value inprocess.env
in the test scriptsCONTRIBUTING.md
to include information about the new scripts