Writing tests using the recipes file
#
TestingIn order to test this new functionality, we'll update the existing ./recipes/e2e.json
recipe file to include the new queries we've added (setIpfsData
, and getIpfsData
).
Add the following .graphql
query files to the ./recipes
folder.
setIpfs.graphql
:
./recipes/setIpfs.graphql
getIpfs.graphql
:
./recipes/getIpfs.graphql
Once the queries we want to send have been defined, we just need to add them to our query recipe file e2e.json
like so:
./recipes/e2e.json
With our recipe complete, we'll deploy and test our Polywrapper locally in the next section!