We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f4925d commit 797c772Copy full SHA for 797c772
packages/executor/src/execution/__tests__/variables-test.ts
@@ -13,6 +13,7 @@ import {
13
GraphQLString,
14
Kind,
15
parse,
16
+ versionInfo,
17
} from 'graphql';
18
import { createGraphQLError } from '@graphql-tools/utils';
19
import { expectJSON } from '../../__testUtils__/expectJSON.js';
@@ -243,7 +244,10 @@ describe('Execute: Handles inputs', () => {
243
244
},
245
errors: [
246
{
- message: 'Argument "input" has invalid value {c: "foo", e: "bar"}.',
247
+ message:
248
+ versionInfo.major === 17
249
+ ? 'Argument "input" has invalid value { c: "foo", e: "bar"}.'
250
+ : 'Argument "input" has invalid value {c: "foo", e: "bar"}.',
251
path: ['fieldWithObjectInput'],
252
locations: [{ line: 3, column: 39 }],
253
0 commit comments