-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Control over underlying data #21
Comments
@hickscorp did you ever get a solution on how to test this? Facing the same issue right now. |
Yes @churcho, here is a snippet of how we got this to work: Test:
Useful functions:
I'll leave it to you to extract the important stuff here :) |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
We're trying to write tests against an Absinthe mutation that uses uploads. We cannot figure out how to have a
%Plug.Upload{}
added to the underlying data.With CURL or Postman, we can easily ensure that the mutation works by, for example, having the following query:
Variables:
And of course, in the same form-data body, an
upload_file
parameter containing the file content.Is there any way to test mutations that require an upload using Wormwood?
The text was updated successfully, but these errors were encountered: