We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9284dab commit 1781164Copy full SHA for 1781164
src/utilities/__tests__/astFromValue-test.ts
@@ -90,6 +90,16 @@ describe('astFromValue', () => {
90
'Int cannot represent non 32-bit signed integer value: 1e+40',
91
);
92
93
+ // Note: outside the bounds of 32bit signed int.
94
+ expect(() => astFromValue(9007199254740991, GraphQLInt)).to.throw(
95
+ 'Int cannot represent non 32-bit signed integer value: 9007199254740991',
96
+ );
97
+
98
+ // Note: outside the bounds of 32bit signed int as BigInt.
99
+ expect(() => astFromValue(9007199254740991n, GraphQLInt)).to.throw(
100
101
102
103
expect(() => astFromValue(NaN, GraphQLInt)).to.throw(
104
'Int cannot represent non-integer value: NaN',
105
0 commit comments