Skip to content

Commit 48e49eb

Browse files
committed
test: add validation for BigInt values in valueValidation tests
1 parent 2ddcfad commit 48e49eb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/valueValidation.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ describe('getValueValidation', () => {
4949
__typename: 'LiteralValue',
5050
value: 42
5151
}, DATA_TYPES).isValid).toBe(true);
52+
expect(getValueValidation('NUMBER', {
53+
__typename: 'LiteralValue',
54+
value: BigInt(42)
55+
}, DATA_TYPES).isValid).toBe(true);
5256
expect(getValueValidation('NUMBER', {
5357
__typename: 'LiteralValue',
5458
value: 'not a number'

0 commit comments

Comments
 (0)