Closed asaadawey closed 3 years ago
Thanks for reporting this Are you using MySQL on windows?
Thanks for taking the time to report this issue!
We've recently released a Prisma Migrate Preview (2.1.3.0 release notes), which has quite a few changes compared to the previous experimental version. We believe this issue is no longer relevant in this new version, so we are closing this.
We would encourage you to try out Prisma Migrate Preview. If you come across this or any other issue in the preview version, please feel free to open a new issue in prisma/prisma. For general feedback on Prisma Migrate Preview, feel free to chime in on this issue.
Bug description
I have followed the documentation step by step of how to integrate testing with prisma and nexus But the code stops at execSync code block which has command
How to reproduce
Just following this documentation https://nexusjs.org/docs/getting-started/tutorial/chapter-testing-your-api AND https://nexusjs.org/docs/getting-started/tutorial/chapter-testing-with-prisma
Here is my code
helpers.ts
run command :
schema.prisma
Error 👍
Expected behavior
To have working integration test
Prisma information
"nexus-plugin-prisma": "^0.19.0" "dependencies": { "@nexus/schema": "^0.15.0", "apollo-server": "^2.13.0", "bcrypt": "5.0.0", "dotenv": "^8.1.0", "graphql-middleware": "^4.0.2", "graphql-shield": "7.3.6", "jsonwebtoken": "8.5.1", "nexus-plugin-prisma": "^0.19.0" }, "devDependencies": { "@types/bcrypt": "3.0.0", "@types/dotenv": "^8.2.0", "@types/eslint": "^7.2.0", "@types/jest": "^26.0.13", "@types/jsonwebtoken": "8.5.0", "@types/node": "^14.10.2", "@types/prettier": "^2.0.0", "@types/rimraf": "^3.0.0", "@typescript-eslint/eslint-plugin": "^4.0.1", "@typescript-eslint/parser": "^4.0.1", "cross-env": "^7.0.2", "dotenv-cli": "^4.0.0", "eslint": "^7.8.1", "eslint-config-prettier": "^6.10.1", "graphql-request": "1.8.2", "husky": ">=4.3.0", "jest": "^26.2.2", "jest-environment-node": "^26.2.0", "lint-staged": ">=10.4.0", "nanoid": "^3.1.12", "npm-run-all": "^4.1.5", "prettier": "^2.1.2", "rimraf": "^3.0.0", "ts-jest": "^26.1.4", "ts-node": "^9.0.0", "ts-node-dev": "1.0.0-pre.63", "typescript": "4.0.3", "typesync": "^0.7.0" },
Environment & setup