MCPcopy
hub / github.com/graphql/graphql-js / expectSyntaxError

Function expectSyntaxError

src/language/__tests__/parser-test.ts:26–28  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

24import { TokenKind } from '../tokenKind.ts';
25
26function expectSyntaxError(text: string) {
27 return expectToThrowJSON(() => parse(text));
28}
29
30describe('Parser', () => {
31 it('parse provides useful errors', () => {

Callers 1

parser-test.tsFile · 0.70

Calls 2

expectToThrowJSONFunction · 0.90
parseFunction · 0.90

Tested by

no test coverage detected