Created
          October 23, 2018 01:51 
        
      - 
      
 - 
        
Save m14t/45794fd7732d6eb90ce2217152309625 to your computer and use it in GitHub Desktop.  
    Assert that your GraphQL schema can execute the introspectionQuery
  
        
  
    
      This file contains hidden or 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 { execute, introspectionQuery, parse } = require('graphql'); | |
| const { schema } = require('../index'); | |
| describe('graphql', () => { | |
| describe('index', () => { | |
| describe('schema', () => { | |
| it('should be a an object', () => { | |
| expect(typeof schema).toBe('object'); | |
| }); | |
| it('should be able to execute the introspectionQuery', () => | |
| execute(schema, parse(introspectionQuery))); | |
| }); | |
| }); | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment