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