Skip to content

Commit

Permalink
feat: Add GraphQL 16 as peerDependency (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
HW13 committed May 4, 2022
1 parent f40e03a commit 65cd369
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
17 changes: 7 additions & 10 deletions lib/astFromSchema/index.test.js
Expand Up @@ -96,8 +96,7 @@ type Query {
getStuff: Stuff
}
union Something = Bar | Baz | Foo
`
union Something = Bar | Baz | Foo`
// Compare printed ASTs so tap doesn't timeout comparing DocumentNodes.
equal(print(actual), expected)
})
Expand All @@ -118,8 +117,7 @@ type Foo {
type Query {
getFoo(bar: String = "bar"): Foo @testing
}
`
}`
// Compare printed ASTs so tap doesn't timeout comparing DocumentNodes.
equal(print(actual), expected)
})
Expand All @@ -146,8 +144,7 @@ type Foo {
type Query {
getFoo(bar: String = "bar"): Foo @testing
}
`
}`
// Compare printed ASTs so tap doesn't timeout comparing DocumentNodes.
equal(print(actual), expected)
})
Expand Down Expand Up @@ -188,8 +185,8 @@ type Query {
getStuff: Stuff
}
union Something = Bar | Baz | Foo
`
union Something = Bar | Baz | Foo`

// Compare printed ASTs so tap doesn't timeout comparing DocumentNodes.
equal(print(actual), expected)
})
Expand Down Expand Up @@ -245,8 +242,8 @@ type Query {
getStuff: Stuff
}
union Something = Bar | Baz | Foo
`
union Something = Bar | Baz | Foo`

// Compare printed ASTs so tap doesn't timeout comparing DocumentNodes.
equal(print(actual), expected)
})
Expand Down
3 changes: 1 addition & 2 deletions lib/normalizeGQLSource/index.test.js
Expand Up @@ -186,8 +186,7 @@ union Friend = Human | Zebra
extend type Query {
friend(humanID: ID, zebraID: ID): Friend
friendsOf(humanID: ID, zebraID: ID): [Friend] @awesome @paginate
}
`
}`

test(
'should group top-level declarations by kind and then alphabetize them along with their fields, directives, arguments, values, types, interfaces, and locations by name.',
Expand Down
3 changes: 1 addition & 2 deletions lib/printSDL/index.test.js
Expand Up @@ -6,8 +6,7 @@ const source = `directive @testing on FIELD_DEFINITION
type Query {
foo: String! @testing
}
`
}`

test('printSDL - given a GraphQLSchema and no opts, should return a normalized SDL string', async ({ equal }) => {
const schema = buildSchema(source)
Expand Down
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -31,12 +31,12 @@
},
"homepage": "https://github.com/autotelic/graphql-schema-tools#readme",
"devDependencies": {
"@graphql-tools/stitch": "^7.5.3",
"graphql": "^15.5.0",
"@graphql-tools/stitch": "^8.6.9",
"graphql": "^16.4.0",
"standard": "^16.0.3",
"tap": "^15.0.9"
"tap": "^16.0.0"
},
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0"
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
}
}

0 comments on commit 65cd369

Please sign in to comment.