Mirror: The spec-compliant minimum of client-side GraphQL.
1import { describe, it, expectTypeOf } from 'vitest'; 2import type * as graphql from 'graphql16'; 3 4import type { parse, parseValue } from '../parser'; 5 6describe('parse', () => { 7 it('should match graphql.js’ parse', () => { 8 expectTypeOf<typeof parse>().toMatchTypeOf<typeof graphql.parse>(); 9 expectTypeOf<typeof graphql.parse>().toMatchTypeOf<typeof parse>(); 10 }); 11}); 12 13describe('parseValue', () => { 14 it('should match graphql.js’ parseValue', () => { 15 expectTypeOf<typeof parseValue>().toMatchTypeOf<typeof graphql.parseValue>(); 16 expectTypeOf<typeof graphql.parseValue>().toMatchTypeOf<typeof parseValue>(); 17 }); 18});