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

Fix/resolve tests #207

Merged
merged 4 commits into from
Apr 28, 2022

Conversation

andrewicarlson
Copy link
Contributor

Extension of #205 that adds to the test matrix and reverts changes from #192 in favor of supporting Typescript ESM using Typescript 4.7. Issue to be created to track that work.

TODO

  • tests

…)"

This reverts commit cf59aae.

-- Reverting because this caused test regressions throughout the application and we will aim to support ESM officially through Typescript 4.7
@vercel
Copy link

vercel bot commented Apr 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nexus-prisma ✅ Ready (Inspect) Visit Preview Apr 28, 2022 at 3:46PM (UTC)

@@ -58,7 +58,7 @@ jobs:
matrix:
os: ['ubuntu-latest']
node-version: [16.x]
prisma-client-version: ['3.5']
prisma-client-version: ['3.10', '3.11', '3.12', '3.13']
Copy link
Contributor

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 and node 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

Copy link
Contributor

@jasonkuhrt jasonkuhrt Apr 28, 2022

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__.ts

One 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

Copy link
Contributor

@jasonkuhrt jasonkuhrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, merge when you two are happy with it

@andrewicarlson andrewicarlson merged commit 876bb28 into graphql-nexus:main Apr 28, 2022
@andrewicarlson andrewicarlson deleted the fix/resolve-tests branch April 28, 2022 18:49
@rostislav-simonik-nexus-prisma-admin
Copy link
Collaborator

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

4 participants