Skip to content

Conversation

@IvanGoncharov
Copy link
Member

@IvanGoncharov IvanGoncharov commented Jun 12, 2018

Cleanup tests in preparation to #1388 and also found a bug with extensionASTNodes

Copy link
Contributor

@mjmahone mjmahone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for going through this comprehensively, @IvanGoncharov ! This looks really good to me.


it('does not allow replacing a default directive', () => {
const ast = parse(`
const sdl = `
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, but want to make sure I understand our guidelines for sdl vs ast: sdl => used when we have TypeSystemDefinitionNode types, and ast for ExecutableDefinitionNode types?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjmahone SDL - is a string containing TypeSystemDefinitions
AST - a result of parse being called on any string in GraphQL syntax.

@leebyron leebyron merged commit f9e6d81 into graphql:master Jun 14, 2018
@leebyron
Copy link
Contributor

Awesome thanks for spotting and catching this before release!

@IvanGoncharov IvanGoncharov deleted the fixExtensionASTNodes branch July 13, 2018 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants