-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Unit test jest upload issue #238
Comments
You should send file,that's why it's throw that error.You just have filename |
Your problem is because the https://github.com/jaydenseric/graphql-upload#class-upload Maybe you could update your approach to use that class, but I've personally never considered testing resolvers like that. I've only ever made full GraphQL multipart requests in tests. Closing because this is more of a request for help with your project using Jest and apparently Apollo Server; whereas this issue tracker is for raising specific and reproducible |
Hi @alisalim17 thanks for your reply. But I didnt understand, what do you mean ?? Could you be a little be more explicit, because I am sending the FileStream promise. Thanks |
I had the same issue, I resolved changing
for
|
Thanks @jaimepater worked |
I am having the following error
Right now is only failing in the unit test, with the productive app it is working the uploading file functionality. I had the same error message with the productive app and I solved it adding the following to the package.json
I will share with you the unit test code
In addition this is the graphqlTestCall code
The text was updated successfully, but these errors were encountered: