diff --git a/lib/astFromSchema/index.test.js b/lib/astFromSchema/index.test.js index 08924d6..8133538 100644 --- a/lib/astFromSchema/index.test.js +++ b/lib/astFromSchema/index.test.js @@ -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) }) @@ -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) }) @@ -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) }) @@ -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) }) @@ -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) }) diff --git a/lib/normalizeGQLSource/index.test.js b/lib/normalizeGQLSource/index.test.js index ea4c3f5..385bf1d 100644 --- a/lib/normalizeGQLSource/index.test.js +++ b/lib/normalizeGQLSource/index.test.js @@ -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.', diff --git a/lib/printSDL/index.test.js b/lib/printSDL/index.test.js index 3e007b8..abf2815 100644 --- a/lib/printSDL/index.test.js +++ b/lib/printSDL/index.test.js @@ -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) diff --git a/package.json b/package.json index 43bb8e0..d7b252c 100644 --- a/package.json +++ b/package.json @@ -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" } }