Created
June 25, 2019 14:30
-
-
Save gufranmirza/99de4d5c9e89401eecf3b8be7ec91f87 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 getUserByUsername = ` | |
{ | |
getUserByUsername(username: 1, name: test) { | |
} | |
} | |
` | |
tester.test(true, getUserByUsername) // Error: username argument is not type String |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment