-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix/resolve tests #207
Merged
andrewicarlson
merged 4 commits into
graphql-nexus:main
from
andrewicarlson:fix/resolve-tests
Apr 28, 2022
Merged
Fix/resolve tests #207
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ea8d1de
Revert "fix: output mjs files for ES modules support (#192)"
andrewicarlson 3ba7b16
Updated test matrix to verify support for last few versions of Prisma
andrewicarlson c6a9fc0
Changes from https://github.com/prisma/nexus-prisma/pull/205
andrewicarlson d2231d1
Adjusting `prisma.user.create` syntax
andrewicarlson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our test now does not support more than one past version test.
Because we have a DB from Heroku to test with and we use schema name for every test by
os name
andnode version
here you will use the same schema name so every test will reset the schema for the other one.we need to update the create schema function to add the prisma version on it.
Please take a look here https://github.com/prisma/nexus-prisma/blob/main/scripts/get-e2e-db-schema.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case it helps we've implemented e2e tests in
@prisma/templates
that allow parallel testing on one database server: https://github.com/prisma/templates-node/blob/main/tests/e2e/__testers__.tsOne of the key bits is the clean up operation which is handy for supporting local TDD (doesn't matter much for one-off runs in CI): https://github.com/prisma/templates-node/blob/main/tests/e2e/__testers__.ts#L38