Created
June 25, 2019 14:31
-
-
Save gufranmirza/f9aa78399264d0366d10d38d5d77b67e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const EasyGraphQLTester = require('easygraphql-tester') | |
const fs = require('fs') | |
const path = require('path') | |
const schemaCode = fs.readFileSync(path.join(__dirname, 'schema', 'schema.gql'), 'utf8') | |
const tester = new EasyGraphQLTester(schemaCode) | |
const mutation = ` | |
mutation CreateUser{ | |
createUser { | |
} | |
} | |
` | |
const test = tester.test(true, mutation, { | |
email: 'test@test.com', | |
fullName: 'test', | |
password: 'test' | |
}) | |
// Error: username argument is missing on createUser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment