Mirror: The spec-compliant minimum of client-side GraphQL.
1import { describe, it, expect } from 'vitest'; 2import { readFileSync } from 'fs'; 3 4import { parse } from '../parser'; 5 6describe('parse', () => { 7 it('parses the kitchen sink query', () => { 8 const sink = readFileSync(__dirname + '/../../benchmark/kitchen_sink.graphql', { encoding: 'utf8' }); 9 expect(parse(sink)).toMatchSnapshot(); 10 }) 11});